projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e5248b
)
Fix MSVC "not all control paths return a value" warning. NFCI.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Mon, 19 Oct 2020 10:15:38 +0000
(11:15 +0100)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Mon, 19 Oct 2020 10:48:31 +0000
(11:48 +0100)
clang/lib/CodeGen/CGExprAgg.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGExprAgg.cpp
b/clang/lib/CodeGen/CGExprAgg.cpp
index
bf7c1ad
..
9106b90
100644
(file)
--- a/
clang/lib/CodeGen/CGExprAgg.cpp
+++ b/
clang/lib/CodeGen/CGExprAgg.cpp
@@
-1463,6
+1463,7
@@
static bool castPreservesZero(const CastExpr *CE) {
case CK_UncheckedDerivedToBase:
return false;
}
+ llvm_unreachable("Unhandled clang::CastKind enum");
}
/// isSimpleZero - If emitting this value will obviously just cause a store of