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:
6fc5b48
)
Let libcall semantics decide whether it knows about functions
author
Chris Lattner
<sabre@nondot.org>
Thu, 5 Jun 2008 23:38:34 +0000
(23:38 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 5 Jun 2008 23:38:34 +0000
(23:38 +0000)
with definitions or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52028
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/LibCallAliasAnalysis.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/LibCallAliasAnalysis.cpp
b/lib/Analysis/LibCallAliasAnalysis.cpp
index 6c8472b628c019369e589d55962b0b28ea3a404e..afc60ddb84ade61dc027db9900594f94c4e486a6 100644
(file)
--- a/
lib/Analysis/LibCallAliasAnalysis.cpp
+++ b/
lib/Analysis/LibCallAliasAnalysis.cpp
@@
-155,8
+155,8
@@
LibCallAliasAnalysis::getModRefInfo(CallSite CS, Value *P, unsigned Size) {
// If this is a direct call to a function that LCI knows about, get the
// information about the runtime function.
- if (
Function *F = CS.getCalledFunction()
) {
- if (
LCI && F->isDeclara
tion()) {
+ if (
LCI
) {
+ if (
Function *F = CS.getCalledFunc
tion()) {
if (const LibCallFunctionInfo *FI = LCI->getFunctionInfo(F)) {
MRInfo = ModRefResult(MRInfo & AnalyzeLibCallDetails(FI, CS, P, Size));
if (MRInfo == NoModRef) return NoModRef;