diff options
author | Alex Zinenko <zinenko@google.com> | 2019-08-09 10:45:15 -0700 |
---|---|---|
committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-08-09 10:45:44 -0700 |
commit | baa1ec22f742c3e1545404cb30d2073b87c7271b (patch) | |
tree | 238e87c1452edfb9b1ccffda6729c5928ef1c021 /mlir/lib/Target/LLVMIR/ConvertToNVVMIR.cpp | |
parent | 68451df267eda7961fca930ab29c6d38f43b97e2 (diff) | |
download | bcm5719-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.cpp | 4 |
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" |