From 961690574439dbdbc968000eab2ce2289f77a2d6 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Tue, 23 Aug 2022 20:49:56 -0500 Subject: [PATCH] [NFC] Fix warning This change came in a few hours ago and introduced a warning. The fix is trivial, so I'm providing it. The original change was reviewed here: https://reviews.llvm.org/D132331 --- llvm/lib/Transforms/CFGuard/CFGuard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/CFGuard/CFGuard.cpp b/llvm/lib/Transforms/CFGuard/CFGuard.cpp index 280348a..b1367ca 100644 --- a/llvm/lib/Transforms/CFGuard/CFGuard.cpp +++ b/llvm/lib/Transforms/CFGuard/CFGuard.cpp @@ -247,7 +247,7 @@ bool CFGuard::doInitialization(Module &M) { } else if (GuardMechanism == CF_Dispatch) { GuardFnName = "__guard_dispatch_icall_fptr"; } else { - assert("Invalid CFGuard mechanism"); + assert(false && "Invalid CFGuard mechanism"); } GuardFnGlobal = M.getOrInsertGlobal(GuardFnName, GuardFnPtrType, [&] { auto *Var = new GlobalVariable(M, GuardFnPtrType, false, -- 2.7.4