Skip to content

Commit 0fd980e

Browse files
authored
[NFC][Clang] Remove unused arg (#101650)
`BuiltinID` is not used inside `CheckBuiltinTargetInSupported`
1 parent cb58294 commit 0fd980e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@ static bool CheckBuiltinTargetNotInUnsupported(
18621862
// Emit an error and return true if the current architecture is not in the list
18631863
// of supported architectures.
18641864
static bool
1865-
CheckBuiltinTargetInSupported(Sema &S, unsigned BuiltinID, CallExpr *TheCall,
1865+
CheckBuiltinTargetInSupported(Sema &S, CallExpr *TheCall,
18661866
ArrayRef<llvm::Triple::ArchType> SupportedArchs) {
18671867
llvm::Triple::ArchType CurArch =
18681868
S.getASTContext().getTargetInfo().getTriple().getArch();
@@ -2151,7 +2151,7 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID,
21512151
case Builtin::BI_interlockedbittestandreset_rel:
21522152
case Builtin::BI_interlockedbittestandreset_nf:
21532153
if (CheckBuiltinTargetInSupported(
2154-
*this, BuiltinID, TheCall,
2154+
*this, TheCall,
21552155
{llvm::Triple::arm, llvm::Triple::thumb, llvm::Triple::aarch64}))
21562156
return ExprError();
21572157
break;
@@ -2164,15 +2164,15 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID,
21642164
case Builtin::BI_interlockedbittestandreset64:
21652165
case Builtin::BI_interlockedbittestandset64:
21662166
if (CheckBuiltinTargetInSupported(
2167-
*this, BuiltinID, TheCall,
2167+
*this, TheCall,
21682168
{llvm::Triple::x86_64, llvm::Triple::arm, llvm::Triple::thumb,
21692169
llvm::Triple::aarch64, llvm::Triple::amdgcn}))
21702170
return ExprError();
21712171
break;
21722172

21732173
case Builtin::BI__builtin_set_flt_rounds:
21742174
if (CheckBuiltinTargetInSupported(
2175-
*this, BuiltinID, TheCall,
2175+
*this, TheCall,
21762176
{llvm::Triple::x86, llvm::Triple::x86_64, llvm::Triple::arm,
21772177
llvm::Triple::thumb, llvm::Triple::aarch64, llvm::Triple::amdgcn}))
21782178
return ExprError();

0 commit comments

Comments
 (0)