summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
diff options
context:
space:
mode:
authorRobert Lougher <rob.lougher@gmail.com>2016-10-26 16:02:36 +0000
committerRobert Lougher <rob.lougher@gmail.com>2016-10-26 16:02:36 +0000
commit8e075fd086313399075d9de8e91e055b1579ca54 (patch)
tree8f0f681664e938205c164501827f4bc1f426a58e /llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
parente713000eb62aba018d67293814a86cf5375a8314 (diff)
downloadbcm5719-llvm-8e075fd086313399075d9de8e91e055b1579ca54.tar.gz
bcm5719-llvm-8e075fd086313399075d9de8e91e055b1579ca54.zip
[ubsan] Fix vptr.cpp test to be more resilient. NFC.
The test contains a switch statement in which two of the cases are tail-merged, with the call to __ubsan_handle_dynamic_type_cache_miss_abort in the common tail. When tail-merging occurs, the debug location of the tail is randomly taken from one of the merge inputs. Luckily for the test, the expected line number in the check is the one which is chosen by the tail-merge. However, if the switch cases are re-ordered the test will fail. This patch disables tail-merge, making the test resilient to changes in tail-merge, and unblocking review D25742. It does not change the semantics of the test. llvm-svn: 285208
Diffstat (limited to 'llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud