aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/ExprEngineC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/StaticAnalyzer/Core/ExprEngineC.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/ExprEngineC.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Core/ExprEngineC.cpp b/lib/StaticAnalyzer/Core/ExprEngineC.cpp
index 8a02b2ca96..2e3e9f51e7 100644
--- a/lib/StaticAnalyzer/Core/ExprEngineC.cpp
+++ b/lib/StaticAnalyzer/Core/ExprEngineC.cpp
@@ -568,8 +568,10 @@ void ExprEngine::VisitInitListExpr(const InitListExpr *IE,
state->getSVal(initEx, LCtx)));
return;
}
-
- llvm_unreachable("unprocessed InitListExpr type");
+
+ assert(IE->getNumInits() == 1);
+ B.generateNode(IE, Pred, state->BindExpr(IE, LCtx, UnknownVal()));
+ return;
}
void ExprEngine::VisitGuardedExpr(const Expr *Ex,