Relax an assert to an if check.

llvm-svn: 72477
This commit is contained in:
Anders Carlsson 2009-05-27 16:28:34 +00:00
parent a4872a411c
commit d48a008b46
1 changed files with 3 additions and 3 deletions

View File

@ -165,7 +165,7 @@ bool Sema::CheckInitializerTypes(Expr *&Init, QualType &DeclType,
return true;
// FIXME: What do do if VD is null here?
assert(VD && "Must have a var decl to construct into!");
if (VD)
Init = CXXConstructExpr::Create(Context, VD, DeclType, Constructor,
false, &Init, 1);
return false;