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:
9f0c839
)
Fix MSVC "not all control paths return a value" warnings. NFCI.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 3 Jul 2019 09:54:25 +0000
(09:54 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 3 Jul 2019 09:54:25 +0000
(09:54 +0000)
llvm-svn: 365012
clang/lib/AST/ExprConstant.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/ExprConstant.cpp
b/clang/lib/AST/ExprConstant.cpp
index
a71cc8e
..
21cbd6d
100644
(file)
--- a/
clang/lib/AST/ExprConstant.cpp
+++ b/
clang/lib/AST/ExprConstant.cpp
@@
-5481,6
+5481,7
@@
class APValueToBufferConverter {
case APValue::LValue:
llvm_unreachable("LValue subobject in bit_cast?");
}
+ llvm_unreachable("Unhandled APValue::ValueKind");
}
bool visitRecord(const APValue &Val, QualType Ty, CharUnits Offset) {
@@
-5749,6
+5750,7
@@
class BufferToAPValueConverter {
llvm_unreachable("either dependent or not canonical!");
#include "clang/AST/TypeNodes.def"
}
+ llvm_unreachable("Unhandled Type::TypeClass");
}
public: