[HIPIFY][fix] Fixer for #801

[issue #801] Errors in hipification statistics


[ROCm/clr commit: 8d28db9c8d]
This commit is contained in:
Evgeny Mankov
2018-12-12 21:33:00 +03:00
parent a8980580c0
commit d2e478546b
3 changed files with 28 additions and 11 deletions
@@ -117,6 +117,8 @@ int main(int argc, const char **argv) {
Tool.appendArgumentsAdjuster(ct::getClangSyntaxOnlyAdjuster());
// Hipify _all_ the things!
if (Tool.runAndSave(&actionFactory)) {
Statistics& currentStat = Statistics::current();
currentStat.hasErrors = true;
LLVM_DEBUG(llvm::dbgs() << "Skipped some replacements.\n");
}
// Either move the tmpfile to the output, or remove it.