diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 29f481a1e4e821..73b1023fffac17 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -344,6 +344,10 @@ static GenericValue lle_X_abort(FunctionType *FT, ArrayRef Args) { return GenericValue(); } +// Silence warnings about sprintf. (See also +// https://github.com/llvm/llvm-project/issues/58086) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" // int sprintf(char *, const char *, ...) - a very rough implementation to make // output useful. static GenericValue lle_X_sprintf(FunctionType *FT, @@ -425,6 +429,7 @@ static GenericValue lle_X_sprintf(FunctionType *FT, } return GV; } +#pragma clang diagnostic pop // int printf(const char *, ...) - a very rough implementation to make output // useful.