[mlir] Fix build of toyc-ch6 (NFC)
This commit is contained in:
parent
0c86fbb557
commit
2f0e50c69b
|
@ -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}));
|
||||
|
|
Loading…
Reference in New Issue
Block a user