projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fac7a9e
)
Use isIntrinsic() instead of checking for "llvm."
author
Matt Arsenault
<Matthew.Arsenault@amd.com>
Thu, 5 Dec 2013 06:05:43 +0000
(06:05 +0000)
committer
Matt Arsenault
<Matthew.Arsenault@amd.com>
Thu, 5 Dec 2013 06:05:43 +0000
(06:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196473
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/AsmWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/AsmWriter.cpp
b/lib/IR/AsmWriter.cpp
index 7decffd0effbce315781aae9417059ed91f066ee..8830c9d5feb4c7aca55b0bbcf8e5d64c57974f91 100644
(file)
--- a/
lib/IR/AsmWriter.cpp
+++ b/
lib/IR/AsmWriter.cpp
@@
-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);