[cfe-commits] r77915 - in /cfe/trunk/lib/CodeGen: CGDecl.cpp CGExprConstant.cpp CodeGenModule.cpp

Anders Carlsson andersca at mac.com
Sun Aug 2 14:34:08 PDT 2009


On Aug 2, 2009, at 2:33 PM, Eli Friedman wrote:

> 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?
>

Yes :)

Thanks,
Anders




More information about the cfe-commits mailing list