summaryrefslogtreecommitdiff
path: root/lib/Analysis/IPA
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-05 01:12:03 +0000
committerChris Lattner <sabre@nondot.org>2005-04-05 01:12:03 +0000
commitbd135c77060bd2213c4a8021379ab16fa0925af1 (patch)
tree1d447d5ddac5a583ba2b75e26e655d6359e16e07 /lib/Analysis/IPA
parent80196b1331537455056044adfa70c4589dc08df3 (diff)
do not crash when using -debug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA')
-rw-r--r--lib/Analysis/IPA/Andersens.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Analysis/IPA/Andersens.cpp b/lib/Analysis/IPA/Andersens.cpp
index 2bfac755507..50ee4743393 100644
--- a/lib/Analysis/IPA/Andersens.cpp
+++ b/lib/Analysis/IPA/Andersens.cpp
@@ -840,6 +840,8 @@ void Andersens::visitCastInst(CastInst &CI) {
#if 0
Constraints.push_back(Constraint(Constraint::Copy, getNodeValue(CI),
&GraphNodes[UniversalSet]));
+#else
+ getNodeValue(CI);
#endif
}
} else if (isa<PointerType>(Op->getType())) {
@@ -848,6 +850,8 @@ void Andersens::visitCastInst(CastInst &CI) {
Constraints.push_back(Constraint(Constraint::Copy,
&GraphNodes[UniversalSet],
getNode(CI.getOperand(0))));
+#else
+ getNode(CI.getOperand(0));
#endif
}
}