Skip to content

Commit 0593b95

Browse files
[CGOpenMPRuntime] Avoid repeated hash lookups (NFC) (#107358)
1 parent abfb340 commit 0593b95

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/CodeGen/CGOpenMPRuntime.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11674,9 +11674,7 @@ CGOpenMPRuntime::LastprivateConditionalRAII::~LastprivateConditionalRAII() {
1167411674
Address CGOpenMPRuntime::emitLastprivateConditionalInit(CodeGenFunction &CGF,
1167511675
const VarDecl *VD) {
1167611676
ASTContext &C = CGM.getContext();
11677-
auto I = LastprivateConditionalToTypes.find(CGF.CurFn);
11678-
if (I == LastprivateConditionalToTypes.end())
11679-
I = LastprivateConditionalToTypes.try_emplace(CGF.CurFn).first;
11677+
auto I = LastprivateConditionalToTypes.try_emplace(CGF.CurFn).first;
1168011678
QualType NewType;
1168111679
const FieldDecl *VDField;
1168211680
const FieldDecl *FiredField;

0 commit comments

Comments
 (0)