forked from OSchip/llvm-project
parent
a4872a411c
commit
d48a008b46
|
@ -165,7 +165,7 @@ bool Sema::CheckInitializerTypes(Expr *&Init, QualType &DeclType,
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// FIXME: What do do if VD is null here?
|
// 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,
|
Init = CXXConstructExpr::Create(Context, VD, DeclType, Constructor,
|
||||||
false, &Init, 1);
|
false, &Init, 1);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue