Skip to content

Commit 9210563

Browse files
committed
Fix accidentally-inverted 'else' in copyMetadata
1 parent 7bdbdc7 commit 9210563

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
@@ -1364,7 +1364,7 @@ void Instruction::swapProfMetadata() {
13641364
void Instruction::copyMetadata(const Instruction &SrcInst,
13651365
ArrayRef<unsigned> WL) {
13661366
if (WL.empty() || is_contained(WL, LLVMContext::MD_dbg))
1367-
setDebugLoc(getDebugLoc().orElse(SrcInst.getDebugLoc()));
1367+
setDebugLoc(SrcInst.getDebugLoc().orElse(getDebugLoc()));
13681368

13691369
if (!SrcInst.hasMetadata())
13701370
return;

0 commit comments

Comments
 (0)