Don't silently truncate array extents to 32 bits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51505 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-05-23 21:40:55 +00:00
parent 80d7e26513
commit 80f0f616e8
2 changed files with 6 additions and 1 deletions

View File

@ -1406,7 +1406,7 @@ Types
}
| '[' EUINT64VAL 'x' Types ']' { // Sized array type?
$$ = new PATypeHolder(HandleUpRefs(ArrayType::get(*$4, (unsigned)$2)));
$$ = new PATypeHolder(HandleUpRefs(ArrayType::get(*$4, $2)));
delete $4;
CHECK_FOR_ERROR
}

View File

@ -0,0 +1,5 @@
; RUN: llvm-as < %s | llvm-dis | grep 18446744073709551615 | count 2
define [18446744073709551615 x i8]* @foo() {
ret [18446744073709551615 x i8]* null
}