summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-04 06:52:09 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-04 06:52:09 +0000
commitd777398ee4244a5f7877c72794c8abc8696ba81a (patch)
treebf515397ae9673dc52f24b6019a49ae02d8c1c97 /llvm/lib/Transforms/IPO/FunctionAttrs.cpp
parentd0935f7069ad367568b4b6f9034221b51fa4bdd6 (diff)
downloadbcm5719-llvm-d777398ee4244a5f7877c72794c8abc8696ba81a.tar.gz
bcm5719-llvm-d777398ee4244a5f7877c72794c8abc8696ba81a.zip
Add method to query for 'NoAlias' attribute on call/invoke instructions.
llvm-svn: 165208
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionAttrs.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionAttrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
index f3f62284334..f974bd0c045 100644
--- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -520,7 +520,7 @@ bool FunctionAttrs::IsFunctionMallocLike(Function *F,
case Instruction::Call:
case Instruction::Invoke: {
CallSite CS(RVI);
- if (CS.paramHasAttr(0, Attribute::NoAlias))
+ if (CS.paramHasNoAliasAttr(0))
break;
if (CS.getCalledFunction() &&
SCCNodes.count(CS.getCalledFunction()))
OpenPOWER on IntegriCloud