summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/SparsePropagation.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-06 22:37:39 +0000
committerOwen Anderson <resistor@mac.com>2009-07-06 22:37:39 +0000
commitf1f1743b2efecfc049dd54cb4d97be8761b12ca0 (patch)
tree3a5f6b46130e7da8f6d4cf6cf462ec011021c6c1 /llvm/lib/Analysis/SparsePropagation.cpp
parent83b5ccbecf80a824633c642928fa40696163cf9b (diff)
downloadbcm5719-llvm-f1f1743b2efecfc049dd54cb4d97be8761b12ca0.tar.gz
bcm5719-llvm-f1f1743b2efecfc049dd54cb4d97be8761b12ca0.zip
Finish LLVMContext-ing lib/Analysis. This required pushing LLVMContext's through the ValueTracking API.
llvm-svn: 74873
Diffstat (limited to 'llvm/lib/Analysis/SparsePropagation.cpp')
-rw-r--r--llvm/lib/Analysis/SparsePropagation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/SparsePropagation.cpp b/llvm/lib/Analysis/SparsePropagation.cpp
index 543306854ce..527299918bd 100644
--- a/llvm/lib/Analysis/SparsePropagation.cpp
+++ b/llvm/lib/Analysis/SparsePropagation.cpp
@@ -17,6 +17,7 @@
#include "llvm/Constants.h"
#include "llvm/Function.h"
#include "llvm/Instructions.h"
+#include "llvm/LLVMContext.h"
#include "llvm/Support/Debug.h"
using namespace llvm;
@@ -153,7 +154,7 @@ void SparseSolver::getFeasibleSuccessors(TerminatorInst &TI,
}
// Constant condition variables mean the branch can only go a single way
- Succs[C == ConstantInt::getFalse()] = true;
+ Succs[C == Context->getConstantIntFalse()] = true;
return;
}
OpenPOWER on IntegriCloud