Skip to content
Commit 13a044c6 authored by Nikita Popov's avatar Nikita Popov
Browse files

[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
parent 3b4b6cbb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment