From 69505f86a1a653bf86c1f2b423b3e0605137d5d1 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Thu, 18 Jun 2015 18:04:12 +0100 Subject: Don't check the return type in the builder. The verifier will not complain about dead code. For the compiler, it is benign. bug:21863767 Change-Id: I6ef7be233d1cd69dddcc4499e4e4fad54753099f --- compiler/optimizing/builder.cc | 5 ----- 1 file changed, 5 deletions(-) (limited to 'compiler/optimizing/builder.cc') diff --git a/compiler/optimizing/builder.cc b/compiler/optimizing/builder.cc index 793dd28157..946c0602cf 100644 --- a/compiler/optimizing/builder.cc +++ b/compiler/optimizing/builder.cc @@ -1463,21 +1463,16 @@ bool HGraphBuilder::AnalyzeDexInstruction(const Instruction& instruction, uint32 } case Instruction::RETURN: { - DCHECK_NE(return_type_, Primitive::kPrimNot); - DCHECK_NE(return_type_, Primitive::kPrimLong); - DCHECK_NE(return_type_, Primitive::kPrimDouble); BuildReturn(instruction, return_type_); break; } case Instruction::RETURN_OBJECT: { - DCHECK(return_type_ == Primitive::kPrimNot); BuildReturn(instruction, return_type_); break; } case Instruction::RETURN_WIDE: { - DCHECK(return_type_ == Primitive::kPrimDouble || return_type_ == Primitive::kPrimLong); BuildReturn(instruction, return_type_); break; } -- cgit v1.2.3-59-g8ed1b