Eliminate unnecessary LLVMContexts.
[oota-llvm.git] / lib / Analysis / SparsePropagation.cpp
index d7bcac2b1e2d2215f17422227266ae195b0ec917..487bdad6dc369f2514475d0c5c0173c4f7132bc5 100644 (file)
@@ -17,7 +17,6 @@
 #include "llvm/Constants.h"
 #include "llvm/Function.h"
 #include "llvm/Instructions.h"
-#include "llvm/LLVMContext.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/raw_ostream.h"
 using namespace llvm;
@@ -155,7 +154,7 @@ void SparseSolver::getFeasibleSuccessors(TerminatorInst &TI,
     }
 
     // Constant condition variables mean the branch can only go a single way
-    Succs[C == ConstantInt::getFalse(*Context)] = true;
+    Succs[C->isNullValue()] = true;
     return;
   }