aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2017-04-27 10:23:30 +0000
committerDiana Picus <diana.picus@linaro.org>2017-04-27 10:23:30 +0000
commit4f46be327cfee48b69d03a062b7b068356d64223 (patch)
tree7ff76bad64f6c6ea6e4d49ccea48b3110f4bd054 /llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp
parent93d7ab9d8255b63cd3af7f9d7727917699f0b964 (diff)
downloadllvm-4f46be327cfee48b69d03a062b7b068356d64223.zip
llvm-4f46be327cfee48b69d03a062b7b068356d64223.tar.gz
llvm-4f46be327cfee48b69d03a062b7b068356d64223.tar.bz2
[ARM] GlobalISel: Fix extended stack operands
Fix a crash when trying to extend a value passed as a sign- or zero-extended stack parameter. The cause of the crash was that we were setting the size of the loaded value to 32 bits, and then tyring to extend again to 32 bits. This patch addresses the issue by also introducing a G_TRUNC after the load. This will leave the unused bits to their original values set by the caller, while being consistent about the types. For values that are not extended, we just use a smaller load. llvm-svn: 301531
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp')
0 files changed, 0 insertions, 0 deletions