| Index: src/arm/lithium-arm.cc
|
| ===================================================================
|
| --- src/arm/lithium-arm.cc (revision 8219)
|
| +++ src/arm/lithium-arm.cc (working copy)
|
| @@ -1628,8 +1628,9 @@
|
|
|
|
|
| LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
|
| - return AssignEnvironment(new LBoundsCheck(UseRegisterAtStart(instr->index()),
|
| - UseRegister(instr->length())));
|
| + LBoundsCheck* result = new LBoundsCheck(UseRegisterAtStart(instr->index()),
|
| + UseRegister(instr->length()));
|
| + return AssignEnvironment(DefineSameAsFirst(result));
|
| }
|
|
|
|
|
|
|