mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Make this const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74317 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
03a597f2b7
commit
a6184406b7
@ -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