[cfe-commits] r152158 - /cfe/trunk/lib/Sema/SemaExpr.cpp
Sean Callanan
scallanan at apple.com
Tue Mar 6 15:12:58 PST 2012
Author: spyffe
Date: Tue Mar 6 17:12:57 2012
New Revision: 152158
URL: http://llvm.org/viewvc/llvm-project?rev=152158&view=rev
Log:
Cleanup (style). Thanks to Argyrios for catching
this.
Modified:
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=152158&r1=152157&r2=152158&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Tue Mar 6 17:12:57 2012
@@ -10810,8 +10810,7 @@
ExprResult RebuildUnknownAnyExpr::VisitImplicitCastExpr(ImplicitCastExpr *E) {
// The only case we should ever see here is a function-to-pointer decay.
- if (E->getCastKind() == CK_FunctionToPointerDecay)
- {
+ if (E->getCastKind() == CK_FunctionToPointerDecay) {
assert(E->getValueKind() == VK_RValue);
assert(E->getObjectKind() == OK_Ordinary);
@@ -10825,9 +10824,7 @@
E->setSubExpr(Result.take());
return S.Owned(E);
- }
- else if (E->getCastKind() == CK_LValueToRValue)
- {
+ } else if (E->getCastKind() == CK_LValueToRValue) {
assert(E->getValueKind() == VK_RValue);
assert(E->getObjectKind() == OK_Ordinary);
@@ -10843,9 +10840,7 @@
E->setSubExpr(Result.take());
return S.Owned(E);
- }
- else
- {
+ } else {
llvm_unreachable("Unhandled cast type!");
}
}
More information about the cfe-commits
mailing list