[PATCH] D50056: [NFC] Silence warning about ptr-to-func to ptr-to-obj cast in clang-fuzzer/handle-llvm/handle_llvm.cpp.
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 31 09:00:10 PDT 2018
erichkeane added inline comments.
================
Comment at: clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp:152
typedef void (*func)(int*, int*, int*, int);
- func f = reinterpret_cast<func>(EE->getPointerToFunction(EntryFunc));
+#if defined(__GNUC__) && ((__GNUC__ == 4) && (__GNUC_MINOR__ < 9))
+ // Silence
----------------
Clang itself defines these as 4.2, so I don't think we want to disable this warning for clang. I think there needs to be a !defined(__clang) &&...
https://reviews.llvm.org/D50056
More information about the cfe-commits
mailing list