summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/InterleavedLoadCombinePass.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-04-29 19:25:16 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-04-29 19:25:16 +0000
commit9b17b80a0e72b1e1a4145f934bd17bbf65f30945 (patch)
tree518712890735a66181a20137493f92a982acb3aa /llvm/lib/CodeGen/InterleavedLoadCombinePass.cpp
parenta706b9a90eb99f764c23a913565d06656f8780a4 (diff)
downloadbcm5719-llvm-9b17b80a0e72b1e1a4145f934bd17bbf65f30945.tar.gz
bcm5719-llvm-9b17b80a0e72b1e1a4145f934bd17bbf65f30945.zip
computePolynomialFromPointer - add missing early-out return for non-pointer types.
Reported in https://www.viva64.com/en/b/0629/ llvm-svn: 359486
Diffstat (limited to 'llvm/lib/CodeGen/InterleavedLoadCombinePass.cpp')
-rw-r--r--llvm/lib/CodeGen/InterleavedLoadCombinePass.cpp1
1 files changed, 1 insertions, 0 deletions
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());
OpenPOWER on IntegriCloud