[clang] [cfi][CodeGen] Call SetLLVMFunctionAttributes{, ForDefinition} on __cf… (PR #78253)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 28 04:41:18 PST 2024


================
@@ -3443,11 +3443,28 @@ void CodeGenFunction::EmitCfiSlowPathCheck(
 void CodeGenFunction::EmitCfiCheckStub() {
   llvm::Module *M = &CGM.getModule();
   auto &Ctx = M->getContext();
+  auto &C = getContext();
----------------
AaronBallman wrote:

Please spell out the types here instead of using `auto`, it's not clear that these are different context objects.

https://github.com/llvm/llvm-project/pull/78253


More information about the cfe-commits mailing list