diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-08-17 23:08:45 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-08-17 23:08:45 +0000 |
commit | 6fdf38bfbd4d19b60b21498f07772ee30a0cca78 (patch) | |
tree | 2762c433a4976fde6065298ea07842d371e1e19d /clang/lib/Analysis/CFG.cpp | |
parent | e3bdcd0ea830e76f116829f44c4bef7ec986884a (diff) | |
download | bcm5719-llvm-6fdf38bfbd4d19b60b21498f07772ee30a0cca78.tar.gz bcm5719-llvm-6fdf38bfbd4d19b60b21498f07772ee30a0cca78.zip |
Fix else style. No functionality change intended.
llvm-svn: 137896
Diffstat (limited to 'clang/lib/Analysis/CFG.cpp')
-rw-r--r-- | clang/lib/Analysis/CFG.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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(); |