diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -1060,9 +1060,6 @@ if (!Op->getType()->isPointerTy()) return Op; - assert(!getDataLayout().isNonIntegralPointerType(Op->getType()) && - "Source pointer type must be integral for ptrtoint!"); - // What would be an ID for such a SCEV cast expression? FoldingSetNodeID ID; ID.AddInteger(scPtrToInt);