Skip to content

Commit 970f9b2

Browse files
committed
Fix accidentally-inverted 'else' in copyMetadata
1 parent 7be603e commit 970f9b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/Instruction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ void Instruction::swapProfMetadata() {
13571357
void Instruction::copyMetadata(const Instruction &SrcInst,
13581358
ArrayRef<unsigned> WL) {
13591359
if (WL.empty() || is_contained(WL, LLVMContext::MD_dbg))
1360-
setDebugLoc(getDebugLoc().orElse(SrcInst.getDebugLoc()));
1360+
setDebugLoc(SrcInst.getDebugLoc().orElse(getDebugLoc()));
13611361

13621362
if (!SrcInst.hasMetadata())
13631363
return;

0 commit comments

Comments
 (0)