[msan] Fix debug info with getNextNode
authorVitaly Buka <vitalybuka@google.com>
Thu, 1 Sep 2022 04:49:15 +0000 (21:49 -0700)
committerVitaly Buka <vitalybuka@google.com>
Fri, 2 Sep 2022 03:13:56 +0000 (20:13 -0700)
commitad3a77df2d3cb5077c231c34694ea9d317d9e3bc
tree6a317afa494648efa24d019c1cf0ad6ef648db37
parentd30cf77cb1e4f743c52adbd52bf4f079794eded3
[msan] Fix debug info with getNextNode

When we want to add instrumentation after
an instruction, instrumentation still should
keep debug info of the instruction.

Reviewed By: kda, kstoimenov

Differential Revision: https://reviews.llvm.org/D133091
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
llvm/test/Instrumentation/MemorySanitizer/msan_debug_info.ll