[llvm-commits] [llvm] r74317 - /llvm/trunk/lib/VMCore/Constants.cpp
Owen Anderson
resistor at mac.com
Fri Jun 26 13:21:18 PDT 2009
Author: resistor
Date: Fri Jun 26 15:21:18 2009
New Revision: 74317
URL: http://llvm.org/viewvc/llvm-project?rev=74317&view=rev
Log:
Make this const.
Modified:
llvm/trunk/lib/VMCore/Constants.cpp
Modified: llvm/trunk/lib/VMCore/Constants.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Constants.cpp?rev=74317&r1=74316&r2=74317&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Constants.cpp (original)
+++ llvm/trunk/lib/VMCore/Constants.cpp Fri Jun 26 15:21:18 2009
@@ -128,8 +128,8 @@
}
// 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);
More information about the llvm-commits
mailing list