diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-04-29 19:25:16 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-04-29 19:25:16 +0000 |
commit | 9b17b80a0e72b1e1a4145f934bd17bbf65f30945 (patch) | |
tree | 518712890735a66181a20137493f92a982acb3aa /llvm/lib/CodeGen/InterleavedLoadCombinePass.cpp | |
parent | a706b9a90eb99f764c23a913565d06656f8780a4 (diff) | |
download | bcm5719-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.cpp | 1 |
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()); |