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) {