[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
This commit is contained in:
Wen-Heng (Jack) Chung 2020-06-22 17:06:28 -05:00
parent 9f9373f86d
commit b7c4912996

View File

@ -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";