Skip to content

Commit 1f5934a

Browse files
[PowerPC] Directly call Instruction::getMetadata (NFC)
1 parent fc15731 commit 1f5934a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16804,10 +16804,8 @@ void PPCTargetLowering::CollectTargetIntrinsicOperands(const CallInst &I,
1680416804
IntrinsicID != Intrinsic::ppc_trapd && IntrinsicID != Intrinsic::ppc_trap)
1680516805
return;
1680616806

16807-
if (I.hasMetadata("annotation")) {
16808-
MDNode *MDN = I.getMetadata("annotation");
16807+
if (MDNode *MDN = I.getMetadata(LLVMContext::MD_annotation))
1680916808
Ops.push_back(DAG.getMDNode(MDN));
16810-
}
1681116809
}
1681216810

1681316811
// isLegalAddressingMode - Return true if the addressing mode represented

0 commit comments

Comments
 (0)