< prev index next >
src/share/vm/opto/addnode.cpp
Print this page
@@ -679,15 +679,15 @@
// Add 'em
intptr_t p2offset = Type::OffsetBot;
if (p2->is_con()) { // Left input is an add of a constant?
p2offset = p2->get_con();
}
- if (t1->isa_aryptr()) {
+ if (p1->isa_aryptr()) {
// In the case of a flattened value type array, each field has its
// own slice so we need to extract the field being accessed from
// the address computation
- return t1->is_aryptr()->with_field_offset_and_offset(p2offset);
+ return p1->is_aryptr()->with_field_offset_and_offset(p2offset);
}
return p1->add_offset(p2offset);
}
//------------------------Ideal_base_and_offset--------------------------------
< prev index next >