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 | 2b3c925d02fbfce76d51737e608aa2533c300026 (patch) | |
| tree | 10f6e414c61ea1ef08aabf10ca39abaf950f4769 /lib/AsmParser | |
| parent | 44d2b947cb05cf8cbb47ad6a3b63da41e24e2581 (diff) | |
| download | external_llvm-2b3c925d02fbfce76d51737e608aa2533c300026.zip external_llvm-2b3c925d02fbfce76d51737e608aa2533c300026.tar.gz external_llvm-2b3c925d02fbfce76d51737e608aa2533c300026.tar.bz2 | |
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/AsmParser')
| -rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index b45456d..e5fad6c 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -1071,11 +1071,6 @@ ConstPool : ConstPool OptAssign CONST ConstVal { | ConstPool OptAssign UNINIT GlobalType Types { const Type *Ty = *$5; // Global declarations appear in Constant Pool - if (isa<ArrayType>(Ty) && cast<ArrayType>(Ty)->isUnsized()) { - ThrowException("Type '" + Ty->getDescription() + - "' is not a sized type!"); - } - GlobalVariable *GV = new GlobalVariable(Ty, $4); if (!setValueName(GV, $2)) { // If not redefining... CurModule.CurrentModule->getGlobalList().push_back(GV); |
