1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Don't silently truncate array extents to 32 bits.

llvm-svn: 51505
This commit is contained in:
Dan Gohman 2008-05-23 21:40:55 +00:00
parent 0c2dcb3cb0
commit abbe3d47ab
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
}