aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorJennifer Yu <jennifer.yu@intel.com>2021-05-03 11:19:59 -0700
committerJennifer Yu <jennifer.yu@intel.com>2021-05-04 09:07:35 -0700
commit5285748c2c764c1d7fb3f882ba9f11ed79f676a1 (patch)
tree79ca7720e4bf83498f6abf299b9557a19dd521cb /llvm/tools/llvm-objdump/llvm-objdump.cpp
parentb1048ff68298c1c4e303bbb77ca1832b2f873cd6 (diff)
downloadllvm-5285748c2c764c1d7fb3f882ba9f11ed79f676a1.zip
llvm-5285748c2c764c1d7fb3f882ba9f11ed79f676a1.tar.gz
llvm-5285748c2c764c1d7fb3f882ba9f11ed79f676a1.tar.bz2
Fix assert on the variable which is used in omp clause is not marked
as used. The problem only happens with constexpr variable, for constexpr variable, variable is not marked during parser variable. This is because compiler might find some var's associate expressions may not actully an odr-used later, the variables get kept in MaybeODRUseExprs, in normal case, at end of process fullExpr, the variable will be marked during the call to CleanupVarDeclMarking(). Since we are processing expression of OpenMP clauses, and the ActOnFinishFullExpr is not getting called that casue variable is not get marked. One way to fix this is to call CleanupVarDeclMarking() in EndOpenMPClause for each omp directive. This to fix https://bugs.llvm.org/show_bug.cgi?id=50206 Differential Revision: https://reviews.llvm.org/D101781
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions