Skip to content

Commit 7118400

Browse files
committed
Return "<no input>" if main faile can't be named
1 parent 81bc18e commit 7118400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ StringRef getMainFileName(const CompilerInvocation &Invocation) {
7171
return Input.isFile() ? Input.getFile()
7272
: Input.getBuffer().getBufferIdentifier();
7373
}
74-
return {};
74+
return "<no input>";
7575
}
7676

7777
class AnalysisConsumer : public AnalysisASTConsumer,

0 commit comments

Comments
 (0)