mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 06:24:57 +00:00
Use isIntrinsic() instead of checking for "llvm."
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196473 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -525,7 +525,7 @@ void SlotTracker::processFunction() {
|
|||||||
// optimizer.
|
// optimizer.
|
||||||
if (const CallInst *CI = dyn_cast<CallInst>(I)) {
|
if (const CallInst *CI = dyn_cast<CallInst>(I)) {
|
||||||
if (Function *F = CI->getCalledFunction())
|
if (Function *F = CI->getCalledFunction())
|
||||||
if (F->getName().startswith("llvm."))
|
if (F->isIntrinsic())
|
||||||
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i)
|
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i)
|
||||||
if (MDNode *N = dyn_cast_or_null<MDNode>(I->getOperand(i)))
|
if (MDNode *N = dyn_cast_or_null<MDNode>(I->getOperand(i)))
|
||||||
CreateMetadataSlot(N);
|
CreateMetadataSlot(N);
|
||||||
|
Reference in New Issue
Block a user