Skip to content

Commit d7e4ba7

Browse files
committed
Remove redundant null check
1 parent cde5d15 commit d7e4ba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13382,7 +13382,7 @@ void Sema::checkNonTrivialCUnion(QualType QT, SourceLocation Loc,
1338213382

1338313383
bool Sema::GloballyUniqueObjectMightBeAccidentallyDuplicated(
1338413384
const VarDecl *Dcl) {
13385-
if (!Dcl || !getLangOpts().CPlusPlus)
13385+
if (!getLangOpts().CPlusPlus)
1338613386
return false;
1338713387

1338813388
// We only need to warn if the definition is in a header file, so wait to

0 commit comments

Comments
 (0)