mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +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:
parent
fac7a9e644
commit
714ce8ae3e
@ -525,7 +525,7 @@ void SlotTracker::processFunction() {
|
||||
// optimizer.
|
||||
if (const CallInst *CI = dyn_cast<CallInst>(I)) {
|
||||
if (Function *F = CI->getCalledFunction())
|
||||
if (F->getName().startswith("llvm."))
|
||||
if (F->isIntrinsic())
|
||||
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i)
|
||||
if (MDNode *N = dyn_cast_or_null<MDNode>(I->getOperand(i)))
|
||||
CreateMetadataSlot(N);
|
||||
|
Loading…
x
Reference in New Issue
Block a user