From b7c4912996d65d54e129feed7bd44c7aa0ece508 Mon Sep 17 00:00:00 2001 From: "Wen-Heng (Jack) Chung" Date: Mon, 22 Jun 2020 17:06:28 -0500 Subject: [PATCH] [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 --- mlir/tools/mlir-rocm-runner/mlir-rocm-runner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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";