From 9b17b80a0e72b1e1a4145f934bd17bbf65f30945 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 29 Apr 2019 19:25:16 +0000 Subject: computePolynomialFromPointer - add missing early-out return for non-pointer types. Reported in https://www.viva64.com/en/b/0629/ llvm-svn: 359486 --- llvm/lib/CodeGen/InterleavedLoadCombinePass.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/CodeGen/InterleavedLoadCombinePass.cpp') diff --git a/llvm/lib/CodeGen/InterleavedLoadCombinePass.cpp b/llvm/lib/CodeGen/InterleavedLoadCombinePass.cpp index 5524924f869..9525da849e2 100644 --- a/llvm/lib/CodeGen/InterleavedLoadCombinePass.cpp +++ b/llvm/lib/CodeGen/InterleavedLoadCombinePass.cpp @@ -960,6 +960,7 @@ public: if (!PtrTy) { Result = Polynomial(); BasePtr = nullptr; + return; } unsigned PointerBits = DL.getIndexSizeInBits(PtrTy->getPointerAddressSpace()); -- cgit v1.2.3