[HIPIFY][fix] Fixer for #801
[issue #801] Errors in hipification statistics
[ROCm/clr commit: 8d28db9c8d]
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user