[PATCH] D135411: Add generic KCFI operand bundle lowering

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 14:20:28 PST 2022


MaskRay accepted this revision.
MaskRay added inline comments.


================
Comment at: clang/lib/CodeGen/BackendUtil.cpp:975
     // done on PreLink stage.
-    if (!IsThinLTOPostLink)
+    if (!IsThinLTOPostLink) {
       addSanitizers(TargetTriple, CodeGenOpts, LangOpts, PB);
----------------
To my self: I'll need to dig up why `if (!IsThinLTOPostLink) {` is here. I think it's unnecessary. But it's ok to keep KCFI in the same place of sanitizers.


================
Comment at: llvm/include/llvm/Transforms/Instrumentation/KCFI.h:20
+namespace llvm {
+class TargetMachine;
+
----------------
the declaration is unused now.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135411/new/

https://reviews.llvm.org/D135411



More information about the llvm-commits mailing list