This would be a problem if the entire instrumented function was a call to e.g. memcpy
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This adds future implementation complexity.
How about a different representation of ActualFnStart: the last instruction before the insertion point, or null if at the BB entry?
Comment Actions
Emit a nop instruction to always mark the end of the MSan prologue, and insert prologue instructions before that.
Comment Actions
LGTM with a nit
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | ||
---|---|---|
1103 | I don't think you need to update FnPrologueEnd anymore. |
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | ||
---|---|---|
1103 | Good catch. Will remove that! |
I don't think you need to update FnPrologueEnd anymore.