[mlir] Fix build of toyc-ch6 (NFC)

This commit is contained in:
Jeff Niu 2022-08-09 15:58:49 -04:00
parent 0c86fbb557
commit 2f0e50c69b

View File

@ -156,6 +156,7 @@ private:
Value globalPtr = builder.create<LLVM::AddressOfOp>(loc, global);
Value cst0 = builder.create<LLVM::ConstantOp>(loc, builder.getI64Type(),
builder.getIndexAttr(0));
return builder.create<LLVM::GEPOp>(
loc,
LLVM::LLVMPointerType::get(IntegerType::get(builder.getContext(), 8)),
globalPtr, ArrayRef<Value>({cst0, cst0}));