Skip to content

Commit 91c1699

Browse files
authored
[clang] [NFC] Merge conditions (llvm#116612)
1 parent 3097c60 commit 91c1699

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/Sema/CheckExprLifetime.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -1095,9 +1095,7 @@ static bool pathOnlyHandlesGslPointer(const IndirectLocalPath &Path) {
10951095
}
10961096

10971097
static bool isAssignmentOperatorLifetimeBound(CXXMethodDecl *CMD) {
1098-
if (!CMD)
1099-
return false;
1100-
return isNormalAssignmentOperator(CMD) && CMD->param_size() == 1 &&
1098+
return CMD && isNormalAssignmentOperator(CMD) && CMD->param_size() == 1 &&
11011099
CMD->getParamDecl(0)->hasAttr<LifetimeBoundAttr>();
11021100
}
11031101

0 commit comments

Comments
 (0)