Skip to content

Commit 2e33828

Browse files
committed
Fix accidentally-inverted 'else' in copyMetadata
1 parent c3bb2ef commit 2e33828

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
@@ -1356,7 +1356,7 @@ void Instruction::swapProfMetadata() {
13561356
void Instruction::copyMetadata(const Instruction &SrcInst,
13571357
ArrayRef<unsigned> WL) {
13581358
if (WL.empty() || is_contained(WL, LLVMContext::MD_dbg))
1359-
setDebugLoc(getDebugLoc().orElse(SrcInst.getDebugLoc()));
1359+
setDebugLoc(SrcInst.getDebugLoc().orElse(getDebugLoc()));
13601360

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

0 commit comments

Comments
 (0)