Commit e4671992 authored by Leigh Stoller's avatar Leigh Stoller

Bug for for multi-architecture mode; not all types have an associated

architecture, be sure to skip those when computing counts.
parent d3a7a4a3
...@@ -370,9 +370,12 @@ if (IsMultiPCArchitecture()) { ...@@ -370,9 +370,12 @@ if (IsMultiPCArchitecture()) {
foreach my $type (keys(%{ $vtop->types() })) { foreach my $type (keys(%{ $vtop->types() })) {
$type = NodeType->Lookup($type); $type = NodeType->Lookup($type);
$architectures{$type->architecture()} +=
$vtop->types()->{$type->type()};
# If no architecture defined for this type, then we do not count.
if (defined($type->architecture())) {
$architectures{$type->architecture()} +=
$vtop->types()->{$type->type()};
}
$ordered += $vtop->types()->{$type->type()}; $ordered += $vtop->types()->{$type->type()};
} }
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment