aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-20 06:43:05 +0000
committerChris Lattner <sabre@nondot.org>2001-10-20 06:43:05 +0000
commit2b3c925d02fbfce76d51737e608aa2533c300026 (patch)
tree10f6e414c61ea1ef08aabf10ca39abaf950f4769 /lib/VMCore/Function.cpp
parent44d2b947cb05cf8cbb47ad6a3b63da41e24e2581 (diff)
It is valid to have unsigned arrays as constants... the linker may initialize them later
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r--lib/VMCore/Function.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp
index 6e30fe80a7..d3c18588cd 100644
--- a/lib/VMCore/Function.cpp
+++ b/lib/VMCore/Function.cpp
@@ -91,9 +91,6 @@ GlobalVariable::GlobalVariable(const Type *Ty, bool isConstant,
: GlobalValue(PointerType::get(Ty), Value::GlobalVariableVal, Name),
Constant(isConstant) {
if (Initializer) Operands.push_back(Use((Value*)Initializer, this));
-
- assert(!isConstant || hasInitializer() &&
- "Globals Constants must have an initializer!");
}
// Specialize setName to take care of symbol table majik