Skip to content

Commit 37da4e3

Browse files
authored
[clang-fuzzer] Remove GCC 4.x pre GCC 4.9 workaround to silence warning (#73974)
The minimum GCC version was bumped up from 4.8 to 5.1 and then even newer awhile ago so garbage collect the pre 4.9 workaround. https://reviews.llvm.org/D66188
1 parent b1806e6 commit 37da4e3

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -185,23 +185,7 @@ static void CreateAndRunJITFunc(const std::string &IR, CodeGenOptLevel OLvl) {
185185
EE->finalizeObject();
186186
EE->runStaticConstructorsDestructors(false);
187187

188-
#if defined(__GNUC__) && !defined(__clang) && \
189-
((__GNUC__ == 4) && (__GNUC_MINOR__ < 9))
190-
// Silence
191-
//
192-
// warning: ISO C++ forbids casting between pointer-to-function and
193-
// pointer-to-object [-Wpedantic]
194-
//
195-
// Since C++11 this casting is conditionally supported and GCC versions
196-
// starting from 4.9.0 don't warn about the cast.
197-
#pragma GCC diagnostic push
198-
#pragma GCC diagnostic ignored "-Wpedantic"
199-
#endif
200188
LLVMFunc f = reinterpret_cast<LLVMFunc>(EE->getPointerToFunction(EntryFunc));
201-
#if defined(__GNUC__) && !defined(__clang) && \
202-
((__GNUC__ == 4) && (__GNUC_MINOR__ < 9))
203-
#pragma GCC diagnostic pop
204-
#endif
205189

206190
// Figure out if we are running the optimized func or the unoptimized func
207191
RunFuncOnInputs(f, (OLvl == CodeGenOptLevel::None) ? UnoptArrays : OptArrays);

0 commit comments

Comments
 (0)