diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-20 06:43:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-20 06:43:05 +0000 |
commit | f96ef663e02de1240f17b9e06aa1da095c8d919d (patch) | |
tree | eee4bf5dab9b6e9a2aefe5fadc18b4c7be594855 /llvm/lib/VMCore/Function.cpp | |
parent | 53516cd05b92355fd7030d1d8eaf4335d945eada (diff) | |
download | bcm5719-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.cpp | 3 |
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 |