[all-commits] [llvm/llvm-project] b7ea29: [msan] Don't use TLS slots of noundef args

Vitaly Buka via All-commits all-commits at lists.llvm.org
Thu Oct 21 18:35:44 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b7ea298dfd835a9ff4e5e97d4f145099240ba3aa
      https://github.com/llvm/llvm-project/commit/b7ea298dfd835a9ff4e5e97d4f145099240ba3aa
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2021-10-21 (Thu, 21 Oct 2021)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
    M llvm/test/Instrumentation/MemorySanitizer/msan_eager.ll

  Log Message:
  -----------
  [msan] Don't use TLS slots of noundef args

Transformations may strip the attribute from the
argument, e.g. for unused, which will result in
shadow offsets mismatch between caller and
callee.

Stripping noundef for used arguments can be
a problem, as TLS is not going to be set
by caller. However this is not the goal of the
patch and I am not aware if that's even
possible.

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


  Commit: 34c97d5ae35405106b7e34763882756a65ff2d67
      https://github.com/llvm/llvm-project/commit/34c97d5ae35405106b7e34763882756a65ff2d67
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2021-10-21 (Thu, 21 Oct 2021)

  Changed paths:
    M libcxxabi/src/cxa_demangle.cpp

  Log Message:
  -----------
  [libcxxabi] Fix build after D111947


Compare: https://github.com/llvm/llvm-project/compare/ca0c92d6a1cc...34c97d5ae354


More information about the All-commits mailing list