Fix bug with generating implicit zero initializer values.

Issue #300.
This commit is contained in:
Matt Pharr
2012-06-26 11:58:16 -07:00
parent ceb8ca680c
commit f558ee788e

View File

@@ -780,7 +780,7 @@ InitSymbol(llvm::Value *ptr, const Type *symType, Expr *initExpr,
return;
}
llvm::Constant *zeroInit = llvm::ConstantAggregateZero::get(llvmType);
llvm::Constant *zeroInit = llvm::Constant::getNullValue(llvmType);
ctx->StoreInst(zeroInit, ep);
}
}