Skip to content

Commit 046b87f

Browse files
committed
Fix MSVC not all control paths return a value warning. NFC.
1 parent 37832d5 commit 046b87f

File tree

1 file changed

+2
-0
lines changed
  • llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer

1 file changed

+2
-0
lines changed

llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ struct ToStr {
4141
case LegalityResultID::Widen:
4242
return "Widen";
4343
}
44+
llvm_unreachable("Unknown LegalityResultID enum");
4445
}
4546

4647
static const char *getVecReason(ResultReason Reason) {
@@ -50,6 +51,7 @@ struct ToStr {
5051
case ResultReason::DiffTypes:
5152
return "DiffTypes";
5253
}
54+
llvm_unreachable("Unknown ResultReason enum");
5355
}
5456
};
5557
#endif // NDEBUG

0 commit comments

Comments
 (0)