Skip to content

Commit a0b05e8

Browse files
committed
clang-wrapper.cc: remove a seemingly redundant check
Change-Id: I45a0d8eb12c75272600f0293470f0057016b8613 TN: V916-015
1 parent dbe9516 commit a0b05e8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tools/gnatcov/clang-wrapper.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,6 @@ extern "C" CXSourceLocation
369369
clang_getOperatorLoc (CXCursor C)
370370
{
371371
ASTUnit *CXXUnit = cxtu::getASTUnit (getCursorTU (C));
372-
if (!CXXUnit)
373-
return clang_getNullLocation ();
374372
SourceLocation sloc;
375373
if (clang_isExpression (C.kind))
376374
if (const Stmt *S = cxcursor::getCursorStmt (C))

0 commit comments

Comments
 (0)