diff options
author | Nikita Popov <npopov@redhat.com> | 2025-03-20 19:35:27 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2025-03-20 19:36:38 +0100 |
commit | 468452b0814a3ad04700455af2d225e25a6aecaf (patch) | |
tree | 1f4b3ea3e09130603ca7b96998b9f32feb930091 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 578f38cd08ba71300b013644e5ae8c8a64598800 (diff) | |
download | llvm-468452b0814a3ad04700455af2d225e25a6aecaf.zip llvm-468452b0814a3ad04700455af2d225e25a6aecaf.tar.gz llvm-468452b0814a3ad04700455af2d225e25a6aecaf.tar.bz2 |
[CodeGen] Fix unused variable warning (NFC)
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 257b7b4..96ab4dd 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; |