From 468452b0814a3ad04700455af2d225e25a6aecaf Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 20 Mar 2025 19:35:27 +0100 Subject: [CodeGen] Fix unused variable warning (NFC) --- clang/lib/CodeGen/CodeGenModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 257b7b40fd19..96ab4dd1837c 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -2935,7 +2935,7 @@ void CodeGenModule::SetFunctionAttributes(GlobalDecl GD, llvm::Function *F, bool IsIncompleteFunction, bool IsThunk) { - if (llvm::Intrinsic::ID IID = F->getIntrinsicID()) { + if (F->getIntrinsicID() != llvm::Intrinsic::not_intrinsic) { // If this is an intrinsic function, the attributes will have been set // when the function was created. return; -- cgit v1.2.3