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:
b648206
)
Fix a bug that caused the pass to go into infinite loops on trivial testcases.
author
Chris Lattner
<sabre@nondot.org>
Mon, 16 Aug 2004 05:38:02 +0000
(
05:38
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 16 Aug 2004 05:38:02 +0000
(
05:38
+0000)
This is fallout of the Bug 122 changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15811
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/IPA/Andersens.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/IPA/Andersens.cpp
b/lib/Analysis/IPA/Andersens.cpp
index 12f0fc30065d8f39dce6ee03e01a003d03e32cf9..54dfd7458d1257ff7a7cfd6f3e3caeca06662bac 100644
(file)
--- a/
lib/Analysis/IPA/Andersens.cpp
+++ b/
lib/Analysis/IPA/Andersens.cpp
@@
-251,7
+251,8
@@
namespace {
///
Node *getNode(Value *V) {
if (Constant *C = dyn_cast<Constant>(V))
- return getNodeForConstantPointer(C);
+ if (!isa<GlobalValue>(C))
+ return getNodeForConstantPointer(C);
std::map<Value*, unsigned>::iterator I = ValueNodes.find(V);
if (I == ValueNodes.end()) {