Skip to content

Commit 468452b

Browse files
committed
[CodeGen] Fix unused variable warning (NFC)
1 parent 578f38c commit 468452b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2935,7 +2935,7 @@ void CodeGenModule::SetFunctionAttributes(GlobalDecl GD, llvm::Function *F,
29352935
bool IsIncompleteFunction,
29362936
bool IsThunk) {
29372937

2938-
if (llvm::Intrinsic::ID IID = F->getIntrinsicID()) {
2938+
if (F->getIntrinsicID() != llvm::Intrinsic::not_intrinsic) {
29392939
// If this is an intrinsic function, the attributes will have been set
29402940
// when the function was created.
29412941
return;

0 commit comments

Comments
 (0)