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:
37545e0
)
[AA] Use CallSite cast idiom. No functionality change.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Wed, 5 Aug 2015 14:16:44 +0000
(14:16 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Wed, 5 Aug 2015 14:16:44 +0000
(14:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244045
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/AliasAnalysis.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/AliasAnalysis.cpp
b/lib/Analysis/AliasAnalysis.cpp
index 9e69342e80bd207c3e4b868269bf72837d2e5766..43f6622a994faf9c2f6192d3e7f99b1e6b0713fc 100644
(file)
--- a/
lib/Analysis/AliasAnalysis.cpp
+++ b/
lib/Analysis/AliasAnalysis.cpp
@@
-455,9
+455,8
@@
bool AliasAnalysis::canInstructionRangeModRef(const Instruction &I1,
/// isNoAliasCall - Return true if this pointer is returned by a noalias
/// function.
bool llvm::isNoAliasCall(const Value *V) {
- if (isa<CallInst>(V) || isa<InvokeInst>(V))
- return ImmutableCallSite(cast<Instruction>(V))
- .paramHasAttr(0, Attribute::NoAlias);
+ if (auto CS = ImmutableCallSite(V))
+ return CS.paramHasAttr(0, Attribute::NoAlias);
return false;
}