Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 4a5da46

Browse files
committed
Fix "control reaches end of non-void function" warning. NFCI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366856 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 2762076 commit 4a5da46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/IR/RemarkStreamer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ formatToSerializer(remarks::Format RemarksFormat, raw_ostream &OS) {
118118
case remarks::Format::YAMLStrTab:
119119
return llvm::make_unique<remarks::YAMLStrTabSerializer>(OS);
120120
};
121+
llvm_unreachable("Unknown remarks::Format enum");
121122
}
122123

123124
Expected<std::unique_ptr<ToolOutputFile>>

0 commit comments

Comments
 (0)