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:
parent
0c2dcb3cb0
commit
abbe3d47ab
@ -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
|
||||
}
|
||||
|
5
test/Assembler/huge-array.ll
Normal file
5
test/Assembler/huge-array.ll
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user