From e7b6fac93eba3e85bf32bbee45fea4181cb33a1c 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/clr commit: 3d073930037402d37abd0981598a46a7d9432e2d] --- projects/clr/hipamd/hipify-clang/src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/clr/hipamd/hipify-clang/src/main.cpp b/projects/clr/hipamd/hipify-clang/src/main.cpp index 702a02d234..3b8f454fd7 100644 --- a/projects/clr/hipamd/hipify-clang/src/main.cpp +++ b/projects/clr/hipamd/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) {