diff options
author | Stephen Tozer <stephen.tozer@sony.com> | 2024-11-08 18:35:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-08 18:35:03 +0000 |
commit | 86405ed1012c97b063cbde12350fdea141e1ab78 (patch) | |
tree | 93fbb546e1c0c7e4218ccd360a7af6980320f016 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | fe5a64d1160209f22624b112b2629b0d6c4bb264 (diff) | |
download | llvm-86405ed1012c97b063cbde12350fdea141e1ab78.zip llvm-86405ed1012c97b063cbde12350fdea141e1ab78.tar.gz llvm-86405ed1012c97b063cbde12350fdea141e1ab78.tar.bz2 |
[DebugInfo][Reassociate] Preserve DebugLocs when reassociating subs (#114226)
In NegateValue in Reassociate, we return the negation of an existing
value in order to break a subtract into an negate + add, potentially
creating a new instruction to perform the negation, but we neglect to
propagate the DebugLoc of the sub being replaced to the negate
instruction if one is created. This patch adds that propagation.
Found using https://github.com/llvm/llvm-project/pull/107279.
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions