aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
diff options
context:
space:
mode:
authorDmitry Polukhin <34227995+dmpolukhin@users.noreply.github.com>2025-01-23 10:35:58 +0000
committerGitHub <noreply@github.com>2025-01-23 10:35:58 +0000
commitcad6bbade0d7dc57b9c43d9ed8c38260345d50bf (patch)
tree23908bb261c27f8be99b0ff173345bf703330152 /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
parent19306351a2c45e266fa11b41eb1362b20b6ca56d (diff)
downloadllvm-cad6bbade0d7dc57b9c43d9ed8c38260345d50bf.zip
llvm-cad6bbade0d7dc57b9c43d9ed8c38260345d50bf.tar.gz
llvm-cad6bbade0d7dc57b9c43d9ed8c38260345d50bf.tar.bz2
[C++20][Modules] Fix crash/compiler error due broken AST links (#123648)
Summary: This PR fixes bugreport https://github.com/llvm/llvm-project/issues/122493 The root problem is the same as before lambda function and DeclRefExpr references a variable that does not belong to the same module as the enclosing function body. Therefore iteration over the function body doesn’t visit the VarDecl. Before this change RelatedDeclsMap was created only for canonical decl but in reality it has to be done for the definition of the function that does not always match the canonical decl. Test Plan: check-clang
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
0 files changed, 0 insertions, 0 deletions