Cleanup (style). Thanks to Argyrios for catching

this.

llvm-svn: 152158
This commit is contained in:
Sean Callanan 2012-03-06 23:12:57 +00:00
parent ed428bc1ce
commit 2db103c0ea
1 changed files with 3 additions and 8 deletions

View File

@ -10810,8 +10810,7 @@ ExprResult RebuildUnknownAnyExpr::VisitObjCMessageExpr(ObjCMessageExpr *E) {
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 @@ ExprResult RebuildUnknownAnyExpr::VisitImplicitCastExpr(ImplicitCastExpr *E) {
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 @@ ExprResult RebuildUnknownAnyExpr::VisitImplicitCastExpr(ImplicitCastExpr *E) {
E->setSubExpr(Result.take());
return S.Owned(E);
}
else
{
} else {
llvm_unreachable("Unhandled cast type!");
}
}