Author: Dmitry Chestnykh Date: 2024-08-02T15:24:49+03:00 New Revision: 0fd980e1dbed1018c77e7c7c258a08a5bca61955
URL: https://github.com/llvm/llvm-project/commit/0fd980e1dbed1018c77e7c7c258a08a5bca61955 DIFF: https://github.com/llvm/llvm-project/commit/0fd980e1dbed1018c77e7c7c258a08a5bca61955.diff LOG: [NFC][Clang] Remove unused arg (#101650) `BuiltinID` is not used inside `CheckBuiltinTargetInSupported` Added: Modified: clang/lib/Sema/SemaChecking.cpp Removed: ################################################################################ diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index e35d91e810dd9..ee143381cf4f7 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -1862,7 +1862,7 @@ static bool CheckBuiltinTargetNotInUnsupported( // Emit an error and return true if the current architecture is not in the list // of supported architectures. static bool -CheckBuiltinTargetInSupported(Sema &S, unsigned BuiltinID, CallExpr *TheCall, +CheckBuiltinTargetInSupported(Sema &S, CallExpr *TheCall, ArrayRef<llvm::Triple::ArchType> SupportedArchs) { llvm::Triple::ArchType CurArch = S.getASTContext().getTargetInfo().getTriple().getArch(); @@ -2151,7 +2151,7 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID, case Builtin::BI_interlockedbittestandreset_rel: case Builtin::BI_interlockedbittestandreset_nf: if (CheckBuiltinTargetInSupported( - *this, BuiltinID, TheCall, + *this, TheCall, {llvm::Triple::arm, llvm::Triple::thumb, llvm::Triple::aarch64})) return ExprError(); break; @@ -2164,7 +2164,7 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID, case Builtin::BI_interlockedbittestandreset64: case Builtin::BI_interlockedbittestandset64: if (CheckBuiltinTargetInSupported( - *this, BuiltinID, TheCall, + *this, TheCall, {llvm::Triple::x86_64, llvm::Triple::arm, llvm::Triple::thumb, llvm::Triple::aarch64, llvm::Triple::amdgcn})) return ExprError(); @@ -2172,7 +2172,7 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID, case Builtin::BI__builtin_set_flt_rounds: if (CheckBuiltinTargetInSupported( - *this, BuiltinID, TheCall, + *this, TheCall, {llvm::Triple::x86, llvm::Triple::x86_64, llvm::Triple::arm, llvm::Triple::thumb, llvm::Triple::aarch64, llvm::Triple::amdgcn})) return ExprError(); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits