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:
parent
a56bff5e36
commit
633060240c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user