diff options
| author | River Riddle <riverriddle@google.com> | 2019-07-12 10:43:11 -0700 |
|---|---|---|
| committer | Mehdi Amini <joker.eph@gmail.com> | 2019-07-12 17:42:41 -0700 |
| commit | 8e349a48b684ca37d8d1668142f26ec71fc44daa (patch) | |
| tree | 945ec525b43411a9d1c14d76c7f9d0d2d9491376 /mlir/lib/Conversion/GPUToCUDA | |
| parent | 89568389301452fc4a7f6a0ea0b512e4d06060c2 (diff) | |
| download | bcm5719-llvm-8e349a48b684ca37d8d1668142f26ec71fc44daa.tar.gz bcm5719-llvm-8e349a48b684ca37d8d1668142f26ec71fc44daa.zip | |
Remove the 'region' field from OpBuilder.
This field wasn't updated as the insertion point changed, making it potentially dangerous given the multi-level of MLIR(e.g. 'createBlock' would always insert the new block in 'region'). This also allows for building an OpBuilder with just a context.
PiperOrigin-RevId: 257829135
Diffstat (limited to 'mlir/lib/Conversion/GPUToCUDA')
| -rw-r--r-- | mlir/lib/Conversion/GPUToCUDA/GenerateCubinAccessors.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Conversion/GPUToCUDA/GenerateCubinAccessors.cpp b/mlir/lib/Conversion/GPUToCUDA/GenerateCubinAccessors.cpp index fc3b00512ff..cc0466cf3b1 100644 --- a/mlir/lib/Conversion/GPUToCUDA/GenerateCubinAccessors.cpp +++ b/mlir/lib/Conversion/GPUToCUDA/GenerateCubinAccessors.cpp @@ -87,7 +87,7 @@ private: LLVM::LLVMType::getInt8PtrTy(llvmDialect))); // Insert a body block that just returns the constant. OpBuilder ob(result.getBody()); - ob.createBlock(); + ob.createBlock(&result.getBody()); auto sizeConstant = ob.create<LLVM::ConstantOp>( loc, getIndexType(), builder.getIntegerAttr(builder.getIndexType(), blob.getValue().size())); |

