summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-18 04:38:32 +0000
committerChris Lattner <sabre@nondot.org>2001-09-18 04:38:32 +0000
commite2c8d43e1d565a1b0f39ecd6acc807c0206f0a7c (patch)
tree4877cefc6efa758ab20f93ba938ef20bb96d74b6 /llvm/lib/VMCore/Function.cpp
parent3779864fcf9c2b1df53b4841c6d87e92b5bbce4a (diff)
downloadbcm5719-llvm-e2c8d43e1d565a1b0f39ecd6acc807c0206f0a7c.tar.gz
bcm5719-llvm-e2c8d43e1d565a1b0f39ecd6acc807c0206f0a7c.zip
Remove the unsized array constraint
llvm-svn: 599
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r--llvm/lib/VMCore/Function.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp
index 47a85395a3f..5d1132f0a7d 100644
--- a/llvm/lib/VMCore/Function.cpp
+++ b/llvm/lib/VMCore/Function.cpp
@@ -86,10 +86,7 @@ GlobalVariable::GlobalVariable(const Type *Ty, bool isConstant,
ConstPoolVal *Initializer = 0,
const string &Name = "")
: User(Ty, Value::GlobalVal, Name), Parent(0), Constant(isConstant) {
- assert(Ty->isPointerType() && // No unsized array pointers
- (!Ty->castPointerType()->isArrayType() ||
- Ty->castPointerType()->castArrayType()->isSized()) &&
- "Global Variables must be pointers to a sized type!");
+ assert(Ty->isPointerType() && "Global Variables must be pointers!");
if (Initializer) Operands.push_back(Use((Value*)Initializer, this));
assert(!isConstant || hasInitializer() &&
OpenPOWER on IntegriCloud