[PATCH] D132331: [llvm] Mark CFGuard fn ptr symbol as DSO local and add tests for mingw
Shafik Yaghmour via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 23 16:34:16 PDT 2022
shafik added inline comments.
================
Comment at: llvm/lib/Transforms/CFGuard/CFGuard.cpp:250
} else {
- assert(GuardMechanism == CF_Dispatch && "Invalid CFGuard mechanism");
- GuardFnGlobal =
- M.getOrInsertGlobal("__guard_dispatch_icall_fptr", GuardFnPtrType);
+ assert("Invalid CFGuard mechanism");
}
----------------
This generates an implicit conversion of string-literal to bool. Alternatively you can do `assert(false && "Invalid CFGuard mechanism");`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132331/new/
https://reviews.llvm.org/D132331
More information about the llvm-commits
mailing list