r174449 - Add note why we used a switch.

Ted Kremenek kremenek at apple.com
Tue Feb 5 14:03:14 PST 2013


Author: kremenek
Date: Tue Feb  5 16:03:14 2013
New Revision: 174449

URL: http://llvm.org/viewvc/llvm-project?rev=174449&view=rev
Log:
Add note why we used a switch.

Modified:
    cfe/trunk/lib/Analysis/CFG.cpp

Modified: cfe/trunk/lib/Analysis/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=174449&r1=174448&r2=174449&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFG.cpp (original)
+++ cfe/trunk/lib/Analysis/CFG.cpp Tue Feb  5 16:03:14 2013
@@ -251,6 +251,7 @@ reverse_children::reverse_children(Stmt
     return;
   }
   switch (S->getStmtClass()) {
+    // Note: Fill in this switch with more cases we want to optimize.
     case Stmt::InitListExprClass: {
       InitListExpr *IE = cast<InitListExpr>(S);
       children = llvm::makeArrayRef(reinterpret_cast<Stmt**>(IE->getInits()),





More information about the cfe-commits mailing list