mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
[MLIR] fix LLVM::InsertValueOp::create
This commit is contained in:
@@ -246,8 +246,9 @@ LogicalResult GetMetadataOpConversion::matchAndRewrite(
|
||||
Value sV = LLVM::UndefOp::create(rewriter, loc, *mdTy);
|
||||
|
||||
// First element is the allocated pointer.
|
||||
sV = LLVM::InsertValueOp::create(
|
||||
rewriter, loc, sV, descriptor.allocatedPtr(rewriter, loc), int64_t{0});
|
||||
SmallVector<int64_t> pos{0};
|
||||
sV = LLVM::InsertValueOp::create(rewriter, loc, sV,
|
||||
descriptor.allocatedPtr(rewriter, loc), pos);
|
||||
|
||||
// Track the current field index.
|
||||
unsigned fieldIdx = 1;
|
||||
|
||||
Reference in New Issue
Block a user