Skip to content

Commit 6711f40

Browse files
wsmosesnikic
andauthored
[SimplifyCFG] Refine metadata handling during instruction hoisting (llvm#158448)
Co-authored-by: Nikita Popov <[email protected]> (cherry picked from commit c44e015)
1 parent 5b9f963 commit 6711f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3439,7 +3439,7 @@ bool SimplifyCFGOpt::speculativelyExecuteBB(BranchInst *BI,
34393439
if (!SpeculatedStoreValue || &I != SpeculatedStore) {
34403440
// Don't update the DILocation of dbg.assign intrinsics.
34413441
if (!isa<DbgAssignIntrinsic>(&I))
3442-
I.setDebugLoc(DebugLoc());
3442+
I.dropLocation();
34433443
}
34443444
I.dropUBImplyingAttrsAndMetadata();
34453445

0 commit comments

Comments
 (0)