[cfe-commits] r77915 - in /cfe/trunk/lib/CodeGen: CGDecl.cpp CGExprConstant.cpp CodeGenModule.cpp
Eli Friedman
eli.friedman at gmail.com
Sun Aug 2 14:33:39 PDT 2009
On Sun, Aug 2, 2009 at 2:18 PM, Anders Carlsson<andersca at mac.com> wrote:
> --- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Sun Aug 2 16:18:22 2009
> @@ -810,6 +810,7 @@
> // exists. A use may still exists, however, so we still may need
> // to do a RAUW.
> assert(!ASTTy->isIncompleteType() && "Unexpected incomplete type");
> + Init = EmitNullConstant(D->getType());
> Init = llvm::Constant::getNullValue(getTypes().ConvertTypeForMem(ASTTy));
> } else {
> Init = EmitConstantExpr(D->getInit(), D->getType());
Did you mean to delete a line here?
-Eli
More information about the cfe-commits
mailing list