Skip to content

Commit

Permalink
suppress GCC false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingerZhu committed Nov 4, 2024
1 parent a7d6245 commit 1967d8a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Conversion/ConvertFuncToGCCJIT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@
#include "mlir/IR/ValueRange.h"
#include "mlir/Interfaces/ControlFlowInterfaces.h"
#include "mlir/Support/LLVM.h"

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
#include "mlir/Transforms/DialectConversion.h"
#pragma GCC diagnostic pop

using namespace mlir;
using namespace mlir::gccjit;

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
namespace {

class GCCJITFunctionRewriter {
Expand Down Expand Up @@ -370,7 +372,6 @@ class CallIndirectOpLowering
}
};
} // namespace
#pragma GCC diagnostic pop

void mlir::gccjit::populateFuncToGCCJITPatterns(
MLIRContext *context, GCCJITTypeConverter &typeConverter,
Expand Down

0 comments on commit 1967d8a

Please sign in to comment.