summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine
diff options
context:
space:
mode:
authorDávid Bolvanský <david.bolvansky@gmail.com>2019-11-03 20:31:05 +0100
committerDávid Bolvanský <david.bolvansky@gmail.com>2019-11-03 20:31:05 +0100
commit5b37c018d5c9add833f9a40b870345e2108614e6 (patch)
tree7c1cfab34840c866ebaa8ac5dcbc9bbda52b721d /llvm/lib/Transforms/InstCombine
parentdecd8c4844a4310d1018cd7d6b8b34eedb6ed26d (diff)
downloadbcm5719-llvm-5b37c018d5c9add833f9a40b870345e2108614e6.tar.gz
bcm5719-llvm-5b37c018d5c9add833f9a40b870345e2108614e6.zip
Revert "[InstructionCombining] Fixed null check after dereferencing warning. NFCI."
This reverts commit 8308187fd9bfa08ffad0a636d4dd1d25e7de5a76. This exposed a bug.
Diffstat (limited to 'llvm/lib/Transforms/InstCombine')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstructionCombining.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index 897c29e619c..c4f9be0a15d 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -1724,7 +1724,6 @@ Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) {
// The first two arguments can vary for any GEP, the rest have to be
// static for struct slots
- assert(CurTy && "No current type?");
if (J > 1 && CurTy->isStructTy())
return nullptr;
OpenPOWER on IntegriCloud