We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7be603e commit 970f9b2Copy full SHA for 970f9b2
llvm/lib/IR/Instruction.cpp
@@ -1357,7 +1357,7 @@ void Instruction::swapProfMetadata() {
1357
void Instruction::copyMetadata(const Instruction &SrcInst,
1358
ArrayRef<unsigned> WL) {
1359
if (WL.empty() || is_contained(WL, LLVMContext::MD_dbg))
1360
- setDebugLoc(getDebugLoc().orElse(SrcInst.getDebugLoc()));
+ setDebugLoc(SrcInst.getDebugLoc().orElse(getDebugLoc()));
1361
1362
if (!SrcInst.hasMetadata())
1363
return;
0 commit comments