[llvm] r359486 - computePolynomialFromPointer - add missing early-out return for non-pointer types.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 29 12:25:17 PDT 2019
Author: rksimon
Date: Mon Apr 29 12:25:16 2019
New Revision: 359486
URL: http://llvm.org/viewvc/llvm-project?rev=359486&view=rev
Log:
computePolynomialFromPointer - add missing early-out return for non-pointer types.
Reported in https://www.viva64.com/en/b/0629/
Modified:
llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp
Modified: llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp?rev=359486&r1=359485&r2=359486&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp (original)
+++ llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp Mon Apr 29 12:25:16 2019
@@ -960,6 +960,7 @@ public:
if (!PtrTy) {
Result = Polynomial();
BasePtr = nullptr;
+ return;
}
unsigned PointerBits =
DL.getIndexSizeInBits(PtrTy->getPointerAddressSpace());
More information about the llvm-commits
mailing list