summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Target/LLVMIR/ConvertToNVVMIR.cpp
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2019-08-09 10:45:15 -0700
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-08-09 10:45:44 -0700
commitbaa1ec22f742c3e1545404cb30d2073b87c7271b (patch)
tree238e87c1452edfb9b1ccffda6729c5928ef1c021 /mlir/lib/Target/LLVMIR/ConvertToNVVMIR.cpp
parent68451df267eda7961fca930ab29c6d38f43b97e2 (diff)
downloadbcm5719-llvm-baa1ec22f742c3e1545404cb30d2073b87c7271b.tar.gz
bcm5719-llvm-baa1ec22f742c3e1545404cb30d2073b87c7271b.zip
Translation to LLVM IR: use LogicalResult instead of bool
The translation code predates the introduction of LogicalResult and was relying on the obsolete LLVM convention of returning false on success. Change it to use MLIR's LogicalResult abstraction instead. NFC. PiperOrigin-RevId: 262589432
Diffstat (limited to 'mlir/lib/Target/LLVMIR/ConvertToNVVMIR.cpp')
-rw-r--r--mlir/lib/Target/LLVMIR/ConvertToNVVMIR.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Target/LLVMIR/ConvertToNVVMIR.cpp b/mlir/lib/Target/LLVMIR/ConvertToNVVMIR.cpp
index c670cbf8337..a1e09fda84d 100644
--- a/mlir/lib/Target/LLVMIR/ConvertToNVVMIR.cpp
+++ b/mlir/lib/Target/LLVMIR/ConvertToNVVMIR.cpp
@@ -52,8 +52,8 @@ public:
~ModuleTranslation() override {}
protected:
- bool convertOperation(Operation &opInst,
- llvm::IRBuilder<> &builder) override {
+ LogicalResult convertOperation(Operation &opInst,
+ llvm::IRBuilder<> &builder) override {
#include "mlir/LLVMIR/NVVMConversions.inc"
OpenPOWER on IntegriCloud