File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -592,6 +592,9 @@ int runDPCT(int argc, const char **argv) {
592
592
if (CodePinReport)
593
593
CallIndependentTool (" codepin-report.py" );
594
594
595
+ if (AnalysisMode)
596
+ DpctGlobalInfo::enableAnalysisMode ();
597
+
595
598
if (InRootPath.getPath ().size () >= MAX_PATH_LEN - 1 ) {
596
599
DpctLog () << " Error: --in-root '" << InRootPath.getPath () << " ' is too long\n " ;
597
600
ShowStatus (MigrationErrorPathTooLong);
@@ -729,8 +732,7 @@ int runDPCT(int argc, const char **argv) {
729
732
#else
730
733
std::string DVerbose = " " ;
731
734
#endif
732
- if (!DpctGlobalInfo::isAnalysisModeEnabled () &&
733
- !checkReportArgs (ReportType.getValue (), ReportFormat.getValue (),
735
+ if (!checkReportArgs (ReportType.getValue (), ReportFormat.getValue (),
734
736
ReportFilePrefix, ReportOnly, GenReport, DVerbose)) {
735
737
ShowStatus (MigrationErrorInvalidReportArgs);
736
738
dpctExit (MigrationErrorInvalidReportArgs);
You can’t perform that action at this time.
0 commit comments