From: Matt Morehouse Date: Sat, 4 Aug 2018 01:42:47 +0000 (+0000) Subject: [clang-fuzzer] Remove unused typedef. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2fdd93270cd584770bbfef8fba106616888003c;p=clang [clang-fuzzer] Remove unused typedef. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338946 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp b/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp index 35ce687048..ff775c1a76 100644 --- a/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp +++ b/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp @@ -160,7 +160,6 @@ static void CreateAndRunJITFunc(const std::string &IR, CodeGenOpt::Level OLvl) { EE->finalizeObject(); EE->runStaticConstructorsDestructors(false); - typedef void (*func)(int*, int*, int*, int); #if defined(__GNUC__) && !defined(__clang) && \ ((__GNUC__ == 4) && (__GNUC_MINOR__ < 9)) // Silence @@ -173,7 +172,7 @@ static void CreateAndRunJITFunc(const std::string &IR, CodeGenOpt::Level OLvl) { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" #endif - LLVMFunc f = reinterpret_cast(EE->getPointerToFunction(EntryFunc)); + LLVMFunc f = reinterpret_cast(EE->getPointerToFunction(EntryFunc)); #if defined(__GNUC__) && !defined(__clang) && \ ((__GNUC__ == 4) && (__GNUC_MINOR__ < 9)) #pragma GCC diagnostic pop