forked from OSchip/llvm-project
[analyzer] Bind UnknownVal to InitListExpr for unsupported types
(ex: float). llvm-svn: 157211
This commit is contained in:
parent
7c015e1020
commit
fc1d4bdc4f
|
@ -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,
|
||||
|
|
|
@ -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};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue