Skip to content

Commit d40605d

Browse files
committed
Restore change accidentally reverted in merge
Restores change from 189d5da
1 parent 8dc33bb commit d40605d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGStmt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ void CodeGenFunction::EmitDoStmt(const DoStmt &S,
12341234
// As long as the condition is true, iterate the loop.
12351235
if (EmitBoolCondBranch) {
12361236
uint64_t BackedgeCount = getProfileCount(S.getBody()) - ParentCount;
1237-
Builder.CreateCondBr(
1237+
auto *I = Builder.CreateCondBr(
12381238
BoolCondVal, LoopBody, LoopFalse,
12391239
createProfileWeightsForLoop(S.getCond(), BackedgeCount));
12401240

0 commit comments

Comments
 (0)