diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp --- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp +++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp @@ -1182,7 +1182,7 @@ return HandlePassthroughUser(Usr, OffsetInfoMap[CurPtr], Follow); if (CE->isCompare()) return true; - if (!CE->isGEPWithNoNotionalOverIndexing()) { + if (!isa(CE)) { LLVM_DEBUG(dbgs() << "[AAPointerInfo] Unhandled constant user " << *CE << "\n"); return false;