Forward-declare LogicalResult as struct

LogicalResult is a struct but some headers forward-declare it as a class, which
breaks Windows builds.  Forward-delcare as a struct instead.

PiperOrigin-RevId: 256565699
This commit is contained in:
Alex Zinenko 2019-07-04 10:16:39 -07:00 committed by A. Unique TensorFlower
parent 6f7f2bced8
commit abc722a582
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@
#define MLIR_ANALYSIS_VERIFIER_H #define MLIR_ANALYSIS_VERIFIER_H
namespace mlir { namespace mlir {
class LogicalResult; struct LogicalResult;
class Operation; class Operation;
/// Perform (potentially expensive) checks of invariants, used to detect /// Perform (potentially expensive) checks of invariants, used to detect

View File

@ -26,7 +26,7 @@
#include "mlir/Support/LLVM.h" #include "mlir/Support/LLVM.h"
namespace mlir { namespace mlir {
class LogicalResult; struct LogicalResult;
class MLIRContext; class MLIRContext;
namespace spirv { namespace spirv {