From 6fdf38bfbd4d19b60b21498f07772ee30a0cca78 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Wed, 17 Aug 2011 23:08:45 +0000 Subject: Fix else style. No functionality change intended. llvm-svn: 137896 --- clang/lib/Analysis/CFG.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/lib/Analysis/CFG.cpp') diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp index a1997ab6a93..65dabda7e76 100644 --- a/clang/lib/Analysis/CFG.cpp +++ b/clang/lib/Analysis/CFG.cpp @@ -2203,8 +2203,7 @@ CFGBlock *CFGBuilder::VisitUnaryExprOrTypeTraitExpr(UnaryExprOrTypeTraitExpr *E, for (const VariableArrayType *VA =FindVA(E->getArgumentType().getTypePtr()); VA != 0; VA = FindVA(VA->getElementType().getTypePtr())) lastBlock = addStmt(VA->getSizeExpr()); - } - else { + } else { // For sizeof(x), where 'x' is a VLA, we should include the computation // of the lvalue of 'x'. Expr *subEx = E->getArgumentExpr(); -- cgit v1.2.3