summaryrefslogtreecommitdiff
path: root/cross-project-tests
diff options
context:
space:
mode:
authorFelipe de Azevedo Piovezan <fpiovezan@apple.com>2022-07-28 14:56:52 -0700
committerAdrian Prantl <aprantl@apple.com>2022-07-28 14:58:14 -0700
commit58526b2d2be932e893218857cc47a16fb05cf1c0 (patch)
tree3f8ea3f9a4af3607f857fa6b3896fa403fa06dd5 /cross-project-tests
parent31760e8189c969d2687c7fa8d67771ab185dd2fb (diff)
downloadllvm-58526b2d2be932e893218857cc47a16fb05cf1c0.tar.gz
[GlobalISel] Handle nullptr constants in dbg.value
Currently, the LLVM IR -> MIR translator fails to translate dbg.values whose first argument is a null pointer. However, in other portions of the code, such pointers are always lowered to the constant zero, for example see IRTranslator::Translate(Constant, Register). This patch addresses the limitation by following the same approach of lowering null pointers to zero. A prior test was checking that null pointers were always lowered to $noreg; this test is changed to check for zero, and the previous behavior is now checked by introducing a dbg.value whose first argument is the address of a global variable. Differential Revision: https://reviews.llvm.org/D130721
Diffstat (limited to 'cross-project-tests')
0 files changed, 0 insertions, 0 deletions