Skip to content

Commit 9dfb48e

Browse files
committed
Remove redundant null check
1 parent 617a940 commit 9dfb48e

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
@@ -13379,7 +13379,7 @@ void Sema::checkNonTrivialCUnion(QualType QT, SourceLocation Loc,
1337913379

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

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

0 commit comments

Comments
 (0)