forked from OSchip/llvm-project
parent
f18318cf4e
commit
59a9468b22
|
@ -811,7 +811,6 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D) {
|
|||
// 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());
|
||||
if (!Init) {
|
||||
|
|
Loading…
Reference in New Issue