1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Make this const.

llvm-svn: 74317
This commit is contained in:
Owen Anderson 2009-06-26 20:21:18 +00:00
parent a56bff5e36
commit 633060240c

View File

@ -128,8 +128,8 @@ bool Constant::ContainsRelocations(unsigned Kind) const {
}
// Static constructor to create a '0' constant of arbitrary type...
static const uint64_t zero[2] = {0, 0};
Constant *Constant::getNullValue(const Type *Ty) {
static uint64_t zero[2] = {0, 0};
switch (Ty->getTypeID()) {
case Type::IntegerTyID:
return ConstantInt::get(Ty, 0);