mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 06:11:05 +01:00
Improve testing and handling of unsigned APInt values (#3202)
This commit is contained in:
@@ -38,7 +38,7 @@ auto HandleArrayExpression(Context& context, Parse::Node parse_node) -> bool {
|
||||
auto bound_value = context.semantics_ir().GetIntegerLiteral(
|
||||
bound_node.GetAsIntegerLiteral());
|
||||
// TODO: Produce an error if the array type is too large.
|
||||
if (bound_value.getBitWidth() <= 64) {
|
||||
if (bound_value.getActiveBits() <= 64) {
|
||||
context.AddNodeAndPush(
|
||||
parse_node,
|
||||
SemIR::Node::ArrayType::Make(
|
||||
|
||||
Reference in New Issue
Block a user