]> granicus.if.org Git - clang/commitdiff
[clang-fuzzer] Remove unused typedef.
authorMatt Morehouse <mascasa@google.com>
Sat, 4 Aug 2018 01:42:47 +0000 (01:42 +0000)
committerMatt Morehouse <mascasa@google.com>
Sat, 4 Aug 2018 01:42:47 +0000 (01:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338946 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-fuzzer/handle-llvm/handle_llvm.cpp

index 35ce6870484f79d9b95ee4081ce021c5c6550340..ff775c1a762d16e652d89b0aaf88be64127084f4 100644 (file)
@@ -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<LLVMFunc>(EE->getPointerToFunction(EntryFunc)); 
+  LLVMFunc f = reinterpret_cast<LLVMFunc>(EE->getPointerToFunction(EntryFunc));
 #if defined(__GNUC__) && !defined(__clang) &&                                  \
     ((__GNUC__ == 4) && (__GNUC_MINOR__ < 9))
 #pragma GCC diagnostic pop