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 | f92b43238599856e2517f137bc20feb6658798f2 (patch) | |
| tree | 2f77be1e33489e3c3397455888277879988d5825 | |
| parent | 76b3c067936b17174142f818ccdc19b39c2fb488 (diff) | |
| download | bcm5719-llvm-f92b43238599856e2517f137bc20feb6658798f2.tar.gz bcm5719-llvm-f92b43238599856e2517f137bc20feb6658798f2.zip | |
Make this const.
llvm-svn: 74317
| -rw-r--r-- | llvm/lib/VMCore/Constants.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp index ba8ab2e392f..a9e4e78ee1f 100644 --- a/llvm/lib/VMCore/Constants.cpp +++ b/llvm/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); |

