[all-commits] [llvm/llvm-project] 05e3ab: [MSAN] Avoid dangling ActualFnStart when replacing...

Gui Andrade via All-commits all-commits at lists.llvm.org
Fri Aug 14 16:51:22 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 05e3ab41e418e3d19541b7e88587f8302888e5ab
      https://github.com/llvm/llvm-project/commit/05e3ab41e418e3d19541b7e88587f8302888e5ab
  Author: Gui Andrade <guiand at google.com>
  Date:   2020-08-14 (Fri, 14 Aug 2020)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
    M llvm/test/Instrumentation/MemorySanitizer/array_types.ll
    M llvm/test/Instrumentation/MemorySanitizer/attributes.ll
    M llvm/test/Instrumentation/MemorySanitizer/clmul.ll
    M llvm/test/Instrumentation/MemorySanitizer/masked-store-load.ll
    M llvm/test/Instrumentation/MemorySanitizer/msan_basic.ll
    M llvm/test/Instrumentation/MemorySanitizer/msan_eager.ll
    M llvm/test/Instrumentation/MemorySanitizer/msan_kernel_basic.ll
    M llvm/test/Instrumentation/MemorySanitizer/msan_x86intrinsics.ll
    M llvm/test/Instrumentation/MemorySanitizer/unsized_type.ll

  Log Message:
  -----------
  [MSAN] Avoid dangling ActualFnStart when replacing instruction

This would be a problem if the entire instrumented function was a call
to
e.g. memcpy

Use FnPrologueEnd Instruction* instead of ActualFnStart BB*

Differential Revision: https://reviews.llvm.org/D86001




More information about the All-commits mailing list