[HIPIFY][fix] Set the correct exit value for hipify-clang if errors.

This fixes a hanging of unit tests.


[ROCm/clr commit: 3d07393003]
Этот коммит содержится в:
Evgeny Mankov
2019-08-21 21:36:53 +03:00
родитель 531760aec6
Коммит e7b6fac93e
+1
Просмотреть файл
@@ -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) {