aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorDaniel McIntosh <Daniel.McIntosh@ibm.com>2021-08-11 14:54:16 -0400
committerDaniel McIntosh <Daniel.McIntosh@ibm.com>2021-11-04 19:30:21 -0400
commit795ff77840e161018a44fe30ae53ad05e5d98f97 (patch)
tree8cc591c541c35960a72de01c6d3d7aa8db435a50 /llvm/lib/IR/Module.cpp
parentce7ac9e66aba2b937b3d3b5505ce6cc75dcc56ac (diff)
downloadllvm-795ff77840e161018a44fe30ae53ad05e5d98f97.zip
llvm-795ff77840e161018a44fe30ae53ad05e5d98f97.tar.gz
llvm-795ff77840e161018a44fe30ae53ad05e5d98f97.tar.bz2
[libcxxabi] Fix NO_THREADS version of test_exception_storage.pass.cpp
`thread_code` returns param, which for NO_THREADS is going to be `&thread_globals`. Thus, the return value will never be null. The test was probably meant to check if `*thread_code(&thread_globals) == 0`. However, to avoid the extra cast, and to bring the NO_THREADS version more in line with the regular version of the test, this changes it to check if thread_globals == 0 directly. Reviewed By: ldionne, #libc_abi Differential Revision: https://reviews.llvm.org/D113048
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions