Skip to content

Commit dda1fcf

Browse files
authored
[llc][NFC] Remove unreachable return statement (#169915)
`reportError()` is a `[[noreturn]]` that calls `exit(1)`.
1 parent 70970d0 commit dda1fcf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/tools/llc/llc.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,11 @@ static std::unique_ptr<ToolOutputFile> GetOutputStream(Triple::OSType OS) {
355355
if (!Binary)
356356
OpenFlags |= sys::fs::OF_TextWithCRLF;
357357
auto FDOut = std::make_unique<ToolOutputFile>(OutputFilename, EC, OpenFlags);
358-
if (EC) {
358+
if (EC)
359359
reportError(EC.message());
360-
return nullptr;
361-
}
362-
363360
return FDOut;
364361
}
362+
365363
// main - Entry point for the llc compiler.
366364
//
367365
int main(int argc, char **argv) {

0 commit comments

Comments
 (0)