From ad66d7626cf76e1e316a52b2258b672ac8496725 Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Wed, 21 Aug 2019 21:36:53 +0300 Subject: [PATCH] [HIPIFY][fix] Set the correct exit value for hipify-clang if errors. This fixes a hanging of unit tests. [ROCm/hip commit: b863c1392c727e454b2b2a3166077a0b18779fad] --- projects/hip/hipify-clang/src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/hip/hipify-clang/src/main.cpp b/projects/hip/hipify-clang/src/main.cpp index 702a02d234..3b8f454fd7 100644 --- a/projects/hip/hipify-clang/src/main.cpp +++ b/projects/hip/hipify-clang/src/main.cpp @@ -426,6 +426,7 @@ int main(int argc, const char **argv) { if (Tool.runAndSave(&actionFactory)) { currentStat.hasErrors = true; LLVM_DEBUG(llvm::dbgs() << "Skipped some replacements.\n"); + Result = 1; } // Copy the tmpfile to the output if (!NoOutput && !currentStat.hasErrors) {