]> granicus.if.org Git - llvm/commit
[ARM] Fix PR32130: Handle promotion of zero sized constants.
authorVadzim Dambrouski <pftbest@gmail.com>
Mon, 20 Mar 2017 22:59:57 +0000 (22:59 +0000)
committerVadzim Dambrouski <pftbest@gmail.com>
Mon, 20 Mar 2017 22:59:57 +0000 (22:59 +0000)
commita734e288727e99ec0c77087ed89f18b828b2209d
tree22dffe5971bc3f47c179107c3498ca8c47175728
parent1f5f67010ff9703cea66b13d0a8e19af28e03fee
[ARM] Fix PR32130: Handle promotion of zero sized constants.

The special case of zero sized values was previously not handled correctly.
This patch handles this by not promoting if the size is zero.

Patch by Tim Neumann.

Differential Revision: https://reviews.llvm.org/D31116

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298320 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/constantpool-promote.ll