[all-commits] [llvm/llvm-project] 70804f: Fix dfsan handling of musttail calls.

Andrew Browne via All-commits all-commits at lists.llvm.org
Wed Jun 2 11:39:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 70804f2a2f7b87227a873cd6d8852ad295068e79
      https://github.com/llvm/llvm-project/commit/70804f2a2f7b87227a873cd6d8852ad295068e79
  Author: Andrew Browne <browneee at google.com>
  Date:   2021-06-02 (Wed, 02 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
    A llvm/test/Instrumentation/DataFlowSanitizer/musttailcall.ll

  Log Message:
  -----------
  Fix dfsan handling of musttail calls.

Without this change, a callsite like:
  [[clang::musttail]] return func_call(x);
will cause an error like:
  fatal error: error in backend: failed to perform tail call elimination
  on a call site marked musttail
due to DFSan inserting instrumentation between the musttail call and
the return.

Reviewed By: stephan.yichao.zhao

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




More information about the All-commits mailing list