aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorBilly Zhu <billyzhu@modular.com>2024-05-23 10:01:37 -0700
committerGitHub <noreply@github.com>2024-05-23 10:01:37 -0700
commit910292c3ac2ebe43cdbc90223c6c9702128316db (patch)
tree749c4786277089c6fbb04b47d0c971762cd22b89 /clang/lib/CodeGen/BackendUtil.cpp
parent729403e244c9970efa7aa17be32c197eb8e28fac (diff)
downloadllvm-910292c3ac2ebe43cdbc90223c6c9702128316db.zip
llvm-910292c3ac2ebe43cdbc90223c6c9702128316db.tar.gz
llvm-910292c3ac2ebe43cdbc90223c6c9702128316db.tar.bz2
[LLVM][Coroutines] Check variable decl scope instead of optimization level for hoisted DbgDeclare Loc (#92978)
Minor patch following up on https://github.com/llvm/llvm-project/pull/75402. The more generalized version of [this error](https://github.com/llvm/llvm-project/pull/75104#issuecomment-1853497609) is whenever we have a debug variable created in one subprogram scope inlined into another subprogram scope. So instead of checking optimization level, it is safer to just check whether the subprogram scope of the variable matches the subprogram scope of the hoisted position.
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions