aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaModule.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2023-03-26 20:52:22 -0700
committerHeejin Ahn <aheejin@gmail.com>2023-04-12 23:47:24 -0700
commitd20a1b87f689a716e16477b8562fd820a72a6a8b (patch)
tree527393325009385605d8ef657a48524a5e3ffba8 /clang/lib/Sema/SemaModule.cpp
parent7d7b178d752a9af023714ff3ae0c268d596932e1 (diff)
downloadllvm-d20a1b87f689a716e16477b8562fd820a72a6a8b.zip
llvm-d20a1b87f689a716e16477b8562fd820a72a6a8b.tar.gz
llvm-d20a1b87f689a716e16477b8562fd820a72a6a8b.tar.bz2
[WebAssembly] Handle DebugLoc in DebugValueManager
According to https://llvm.org/docs/HowToUpdateDebugInfo.html#when-to-preserve-an-instruction-location, when moving (and in our case cloning) within the same BB, the debug location is preserved. But when moving / cloning to a different BB, we preserve the debug location only if the destination BB contains the same location. Currently we preserve the debug loc unconditionally in all cases. This CL correctly handles the debug locs in DebugValueManager. Reviewed By: dschuff Differential Revision: https://reviews.llvm.org/D148115
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions