mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 07:34:06 +00:00
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:
parent
80d7e26513
commit
80f0f616e8
@ -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