[all-commits] [llvm/llvm-project] afff74: [HWAsan][NewPM] Handle hwasan like other sanitizers

aeubanks via All-commits all-commits at lists.llvm.org
Thu Oct 8 14:43:55 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: afff74e5c26fd8b57968ae111a2a4fc8fc8deda8
      https://github.com/llvm/llvm-project/commit/afff74e5c26fd8b57968ae111a2a4fc8fc8deda8
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2020-10-08 (Thu, 08 Oct 2020)

  Changed paths:
    M clang/lib/CodeGen/BackendUtil.cpp
    M clang/test/CodeGen/hwasan-new-pm.c

  Log Message:
  -----------
  [HWAsan][NewPM] Handle hwasan like other sanitizers

Move it as an EP callback (-O[123]) or in addSanitizersAtO0.

This makes it not run in ThinLTO pre-link (like the other sanitizers),
so don't check LTO runs in hwasan-new-pm.c. Changing its position also
seems to change the generated IR. I think we just need to make sure the
pass runs.

Reviewed By: leonardchan

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




More information about the All-commits mailing list