[analyzer] Bind UnknownVal to InitListExpr for unsupported types

(ex: float).

llvm-svn: 157211
This commit is contained in:
Anna Zaks 2012-05-21 22:07:00 +00:00
parent 7c015e1020
commit fc1d4bdc4f
2 changed files with 9 additions and 2 deletions

View File

@ -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,

View File

@ -31,3 +31,8 @@ void radar11487541() {
namespace fs = boost::filesystem;
fs::path p;
}
// PR12873 radrar://11499139
void testFloatInitializer() {
const float ysize={0.015}, xsize={0.01};
}