aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorAndrew Savonichev <andrew.savonichev@gmail.com>2022-06-13 19:05:50 +0300
committerAndrew Savonichev <andrew.savonichev@gmail.com>2022-10-04 00:29:42 +0300
commitd420110a1e9d620632d47366d569d234026b9e0e (patch)
tree516dd2a9ac7f80372d2d3c66966e4e58612da9c1 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent5585d99835e83cca79ead9f0d90fcfab927391d5 (diff)
downloadllvm-d420110a1e9d620632d47366d569d234026b9e0e.zip
llvm-d420110a1e9d620632d47366d569d234026b9e0e.tar.gz
llvm-d420110a1e9d620632d47366d569d234026b9e0e.tar.bz2
[NVPTX] Fix constant expression initializers for global variables
Before this patch the code in printScalarConstant was unable to handle nested constant expressions like (gep (addrspacecast ptr)) and crashed with: LLVM ERROR: Unsupported expression in static initializer: addrspacecast ([4 x i8] addrspace(1)* @ga to [4 x i8]*) We can use lowerConstantForGV instead which is a customized version of lowerConstant that supports generic() and nested expressions. Differential Revision: https://reviews.llvm.org/D127878
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions