From 88a6655a2eb48a14033ca5417526ed31ecc18e32 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 29 Apr 2019 19:25:16 +0000 Subject: [PATCH] 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 --- lib/CodeGen/InterleavedLoadCombinePass.cpp | 1 + 1 file changed, 1 insertion(+) 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()); -- 2.50.1