summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitf96ef663e02de1240f17b9e06aa1da095c8d919d (patch)
treeeee4bf5dab9b6e9a2aefe5fadc18b4c7be594855 /llvm/lib/VMCore/Function.cpp
parent53516cd05b92355fd7030d1d8eaf4335d945eada (diff)
downloadbcm5719-llvm-f96ef663e02de1240f17b9e06aa1da095c8d919d.tar.gz
bcm5719-llvm-f96ef663e02de1240f17b9e06aa1da095c8d919d.zip
It is valid to have unsigned arrays as constants... the linker may initialize them later
llvm-svn: 923
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r--llvm/lib/VMCore/Function.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp
index 6e30fe80a77..d3c18588cda 100644
--- a/llvm/lib/VMCore/Function.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud