summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata/TestStructuredDataAPI.py
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2019-10-20 15:02:22 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2019-10-20 15:02:22 +0000
commite6125fc0ec3418d6529b52f15853a06e000d478d (patch)
treed010ce6942bfc9186b93baf3bef10c640bd70ff2 /lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata/TestStructuredDataAPI.py
parent2779987d0e2985a9618bd87b5f6532722645a5f2 (diff)
downloadbcm5719-llvm-e6125fc0ec3418d6529b52f15853a06e000d478d.tar.gz
bcm5719-llvm-e6125fc0ec3418d6529b52f15853a06e000d478d.zip
[AMDGPU] Fix assertion due to initializer list
Sometimes a global var is replaced by a different llvm value. clang use GetAddrOfGlobalVar to get the original llvm global variable. For most targets, GetAddrOfGlobalVar returns either the llvm global variable or a bitcast of the llvm global variable. However, for AMDGPU target, GetAddrOfGlobalVar returns the addrspace cast or addrspace cast plus bitcast of the llvm global variable. To get the llvm global variable, these casts need to be stripped, otherwise there is assertion. This patch fixes that. Differential Revision: https://reviews.llvm.org/D69129 llvm-svn: 375362
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata/TestStructuredDataAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud