[PATCH] D95595: [NFC] Fix Wreturn-type gcc warning
Yang Fan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 28 00:08:29 PST 2021
nullptr.cpp updated this revision to Diff 319775.
nullptr.cpp added a comment.
Update
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95595/new/
https://reviews.llvm.org/D95595
Files:
llvm/lib/IR/AsmWriter.cpp
Index: llvm/lib/IR/AsmWriter.cpp
===================================================================
--- llvm/lib/IR/AsmWriter.cpp
+++ llvm/lib/IR/AsmWriter.cpp
@@ -3172,6 +3172,7 @@
case GlobalValue::ProtectedVisibility:
return "protected";
}
+ llvm_unreachable("invalid visibility");
}
void AssemblyWriter::printFunctionSummary(const FunctionSummary *FS) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95595.319775.patch
Type: text/x-patch
Size: 375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210128/734c66ba/attachment.bin>
More information about the llvm-commits
mailing list