[all-commits] [llvm/llvm-project] 13a044: [DebugInfo] Fix incorrect dbg.declare when nrvo fl...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Tue Aug 29 02:40:17 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 13a044c6993a914fc33549b72215e698a1cdef63
https://github.com/llvm/llvm-project/commit/13a044c6993a914fc33549b72215e698a1cdef63
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-08-29 (Tue, 29 Aug 2023)
Changed paths:
M clang/lib/CodeGen/CGDecl.cpp
A clang/test/CodeGenCXX/trivial_abi_debuginfo.cpp
Log Message:
-----------
[DebugInfo] Fix incorrect dbg.declare when nrvo flag is used
When clang generates an nrvo boolean flag, the dbg.declare for the
corresponding variable was incorrectly placed on that flag, rather
than the actual variable.
Fix this by not overwriting AllocaAddr with the nrvo flag.
This started causing verifier errors with D158743.
Differential Revision: https://reviews.llvm.org/D158972
More information about the All-commits
mailing list