about summary refs log tree commit diff homepage
path: root/lib/Core/GetElementPtrTypeIterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Core/GetElementPtrTypeIterator.h')
-rw-r--r--lib/Core/GetElementPtrTypeIterator.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Core/GetElementPtrTypeIterator.h b/lib/Core/GetElementPtrTypeIterator.h
index 87de667d..89606a0a 100644
--- a/lib/Core/GetElementPtrTypeIterator.h
+++ b/lib/Core/GetElementPtrTypeIterator.h
@@ -88,10 +88,8 @@ class generic_gep_type_iterator
       if (llvm::CompositeType *CT = dyn_cast<llvm::CompositeType>(CurTy)) {
         CurTy = CT->getTypeAtIndex(getOperand());
 #endif
-#if LLVM_VERSION_CODE >= LLVM_VERSION(4, 0)
       } else if (auto ptr = dyn_cast<llvm::PointerType>(CurTy)) {
         CurTy = ptr->getElementType();
-#endif
       } else {
         CurTy = 0;
       }