Skip to content

Commit 5d3b1e2

Browse files
authored
[SYCLomatic] Analysis mode reports only once if migrate only one file (#2634)
Signed-off-by: Ziran Zhang <ziran.zhang@intel.com>
1 parent 7e3c146 commit 5d3b1e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/DPCT/MigrationReport/Statics.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ class AnalysisModeStats {
322322
Summary.dump(OS, Indent);
323323
Total += Summary;
324324
}
325-
Total.dump(OS, Indent);
325+
if (AnalysisModeStaticsMap.size() > 1)
326+
Total.dump(OS, Indent);
326327
if (DependencyBits.Flag) {
327328
LineStream(OS, Indent) << llvm::raw_ostream::Colors::BLUE
328329
<< "Library Dependencies of SYCL Project:"

0 commit comments

Comments
 (0)