diff options
Diffstat (limited to 'mlir/examples/toy/Ch7/mlir/MLIRGen.cpp')
-rw-r--r-- | mlir/examples/toy/Ch7/mlir/MLIRGen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/examples/toy/Ch7/mlir/MLIRGen.cpp b/mlir/examples/toy/Ch7/mlir/MLIRGen.cpp index 3d543f69bdc..c1bcee7e1b9 100644 --- a/mlir/examples/toy/Ch7/mlir/MLIRGen.cpp +++ b/mlir/examples/toy/Ch7/mlir/MLIRGen.cpp @@ -585,11 +585,11 @@ private: mlir::Type type = getType(varType, vardecl.loc()); if (!type) return nullptr; - if (type != value->getType()) { + if (type != value.getType()) { emitError(loc(vardecl.loc())) << "struct type of initializer is different than the variable " "declaration. Got " - << value->getType() << ", but expected " << type; + << value.getType() << ", but expected " << type; return nullptr; } |