aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/CFG.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2013-02-05 22:03:14 +0000
committerTed Kremenek <kremenek@apple.com>2013-02-05 22:03:14 +0000
commitb1855de3d61eab7d2f2e616ed59195f83e2a6dc0 (patch)
treeea1fa893545ed41ce27a56ccb1fd131b3f0d80f5 /lib/Analysis/CFG.cpp
parented03c9f0850bfebe3e07736a9b3f212b2e30db76 (diff)
Add note why we used a switch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFG.cpp')
-rw-r--r--lib/Analysis/CFG.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp
index 1cbaaee4a1..01553b884e 100644
--- a/lib/Analysis/CFG.cpp
+++ b/lib/Analysis/CFG.cpp
@@ -251,6 +251,7 @@ reverse_children::reverse_children(Stmt *S) {
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()),