From: Simon Pilgrim Date: Mon, 29 Apr 2019 19:25:16 +0000 (+0000) Subject: computePolynomialFromPointer - add missing early-out return for non-pointer types. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88a6655a2eb48a14033ca5417526ed31ecc18e32;p=llvm computePolynomialFromPointer - add missing early-out return for non-pointer types. Reported in https://www.viva64.com/en/b/0629/ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359486 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/InterleavedLoadCombinePass.cpp b/lib/CodeGen/InterleavedLoadCombinePass.cpp index 5524924f869..9525da849e2 100644 --- a/lib/CodeGen/InterleavedLoadCombinePass.cpp +++ b/lib/CodeGen/InterleavedLoadCombinePass.cpp @@ -960,6 +960,7 @@ public: if (!PtrTy) { Result = Polynomial(); BasePtr = nullptr; + return; } unsigned PointerBits = DL.getIndexSizeInBits(PtrTy->getPointerAddressSpace());