diff options
| author | Owen Anderson <resistor@mac.com> | 2009-06-26 20:21:18 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-06-26 20:21:18 +0000 |
| commit | 6926cce5c3b6e133f235a22381c13802ef68beb1 (patch) | |
| tree | 785ca2bff28d576bd20c7e50f238761b753e0d62 /lib/VMCore | |
| parent | 40f569084e210670a29e30c0d985574a347e5d48 (diff) | |
| download | external_llvm-6926cce5c3b6e133f235a22381c13802ef68beb1.zip external_llvm-6926cce5c3b6e133f235a22381c13802ef68beb1.tar.gz external_llvm-6926cce5c3b6e133f235a22381c13802ef68beb1.tar.bz2 | |
Make this const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74317 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
| -rw-r--r-- | lib/VMCore/Constants.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index ba8ab2e..a9e4e78 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -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); |
