diff options
author | Aart Bik <ajcbik@google.com> | 2016-06-07 18:16:05 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-06-07 18:16:06 +0000 |
commit | 88b970c24162c0b223f724e664a6da08ae6bfc5c (patch) | |
tree | 68cadc43e2c0bb665511a247339964ec51e6f764 /compiler/optimizing/instruction_builder.cc | |
parent | 83968f1a0949972e728d2302a26f9ae98dff34b2 (diff) | |
parent | 31883646547a036f58b9fa0894eb0fac0bcf05a1 (diff) |
Merge "Do not hide instance field hard failure with soft failure"
Diffstat (limited to 'compiler/optimizing/instruction_builder.cc')
-rw-r--r-- | compiler/optimizing/instruction_builder.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/optimizing/instruction_builder.cc b/compiler/optimizing/instruction_builder.cc index 5e691c7f5f..135038b753 100644 --- a/compiler/optimizing/instruction_builder.cc +++ b/compiler/optimizing/instruction_builder.cc @@ -381,10 +381,11 @@ HInstruction* HInstructionBuilder::LoadLocal(uint32_t reg_number, Primitive::Typ // If the operation requests a specific type, we make sure its input is of that type. if (type != value->GetType()) { if (Primitive::IsFloatingPointType(type)) { - return ssa_builder_->GetFloatOrDoubleEquivalent(value, type); + value = ssa_builder_->GetFloatOrDoubleEquivalent(value, type); } else if (type == Primitive::kPrimNot) { - return ssa_builder_->GetReferenceTypeEquivalent(value); + value = ssa_builder_->GetReferenceTypeEquivalent(value); } + DCHECK(value != nullptr); } return value; |