[Mlir-commits] [mlir] b7c4912 - [mlir][mlir-rocm-runner] Remove compile-time warning. NFC.

Wen-Heng Chung llvmlistbot at llvm.org
Mon Jun 22 19:58:52 PDT 2020


Author: Wen-Heng (Jack) Chung
Date: 2020-06-22T21:58:40-05:00
New Revision: b7c4912996d65d54e129feed7bd44c7aa0ece508

URL: https://github.com/llvm/llvm-project/commit/b7c4912996d65d54e129feed7bd44c7aa0ece508
DIFF: https://github.com/llvm/llvm-project/commit/b7c4912996d65d54e129feed7bd44c7aa0ece508.diff

LOG: [mlir][mlir-rocm-runner] Remove compile-time warning. NFC.

Subscribers: mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, stephenneuendorffer, Joonsoo, grosul1, Kayjukh, jurahul, msifontes

Tags: #mlir

Differential Revision: https://reviews.llvm.org/D82333

Added: 
    

Modified: 
    mlir/tools/mlir-rocm-runner/mlir-rocm-runner.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/tools/mlir-rocm-runner/mlir-rocm-runner.cpp b/mlir/tools/mlir-rocm-runner/mlir-rocm-runner.cpp
index 9e4b1ad2164a..8c23713ad65d 100644
--- a/mlir/tools/mlir-rocm-runner/mlir-rocm-runner.cpp
+++ b/mlir/tools/mlir-rocm-runner/mlir-rocm-runner.cpp
@@ -227,7 +227,7 @@ static void configTargetChip() {
   llvm::ErrorOr<std::string> rocmAgentEnumerator = llvm::sys::findProgramByName(
       kRocmAgentEnumerator, {__ROCM_PATH__ "/bin"});
   std::error_code ec;
-  if (ec = rocmAgentEnumerator.getError()) {
+  if ((ec = rocmAgentEnumerator.getError())) {
     WithColor::warning(errs(), kRunnerProgram)
         << kRocmAgentEnumerator << " couldn't be located under "
         << __ROCM_PATH__ << ", set target as " << kDefaultTargetChip << "\n";


        


More information about the Mlir-commits mailing list