diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-04 06:52:09 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-04 06:52:09 +0000 |
commit | d777398ee4244a5f7877c72794c8abc8696ba81a (patch) | |
tree | bf515397ae9673dc52f24b6019a49ae02d8c1c97 /llvm/lib/Transforms/IPO/FunctionAttrs.cpp | |
parent | d0935f7069ad367568b4b6f9034221b51fa4bdd6 (diff) | |
download | bcm5719-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.cpp | 2 |
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())) |