diff options
author | Dávid Bolvanský <david.bolvansky@gmail.com> | 2019-11-03 20:06:38 +0100 |
---|---|---|
committer | Dávid Bolvanský <david.bolvansky@gmail.com> | 2019-11-03 20:06:38 +0100 |
commit | 8262a5b70163f3136635625a6e15d401009c838d (patch) | |
tree | 60d23696a6c31da5b499fa919e8505645bb30e5e /llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | |
parent | 914128ab12f3714c0baf79aacfc64cef85c0f72a (diff) | |
download | llvm-8262a5b70163f3136635625a6e15d401009c838d.zip llvm-8262a5b70163f3136635625a6e15d401009c838d.tar.gz llvm-8262a5b70163f3136635625a6e15d401009c838d.tar.bz2 |
[CHR] Fixed null check after dereferencing warning. NFCI.
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp index 55c64fa..8524ca9 100644 --- a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp +++ b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp @@ -1061,6 +1061,7 @@ static bool shouldSplit(Instruction *InsertPoint, DenseSet<Value *> &ConditionValues, DominatorTree &DT, DenseSet<Instruction *> &Unhoistables) { + assert(InsertPoint && "Null InsertPoint"); CHR_DEBUG( dbgs() << "shouldSplit " << *InsertPoint << " PrevConditionValues "; for (Value *V : PrevConditionValues) { @@ -1071,7 +1072,6 @@ static bool shouldSplit(Instruction *InsertPoint, dbgs() << *V << ", "; } dbgs() << "\n"); - assert(InsertPoint && "Null InsertPoint"); // If any of Bases isn't hoistable to the hoist point, split. for (Value *V : ConditionValues) { DenseMap<Instruction *, bool> Visited; |