diff options
author | Dan Gohman <gohman@apple.com> | 2009-12-18 23:42:08 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-12-18 23:42:08 +0000 |
commit | 43ea505fb07e303721d92f2b2bdda6e601868523 (patch) | |
tree | 2472770b7295d9eb5dc9f2daa945a6918b909c0c /lib/Analysis/SparsePropagation.cpp | |
parent | b4e6a5df5dada0cd919cc6e2717eb3118db9cc45 (diff) |
Eliminate unnecessary LLVMContexts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91729 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/SparsePropagation.cpp')
-rw-r--r-- | lib/Analysis/SparsePropagation.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/SparsePropagation.cpp b/lib/Analysis/SparsePropagation.cpp index d7bcac2b1e..487bdad6dc 100644 --- a/lib/Analysis/SparsePropagation.cpp +++ b/lib/Analysis/SparsePropagation.cpp @@ -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; } |