OSDN Git Service

Fix codegen_test: HNot has only one input.
authorNicolas Geoffray <ngeoffray@google.com>
Fri, 7 Nov 2014 15:36:32 +0000 (15:36 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Fri, 7 Nov 2014 15:36:32 +0000 (15:36 +0000)
Change-Id: I13e54d39dfbf80593f2e9592dbd286c54938e95a

compiler/optimizing/code_generator_arm64.cc

index 43afe9d..8e3409f 100644 (file)
@@ -1060,7 +1060,7 @@ void InstructionCodeGeneratorARM64::VisitNewInstance(HNewInstance* instruction)
 
 void LocationsBuilderARM64::VisitNot(HNot* instruction) {
   LocationSummary* locations = new (GetGraph()->GetArena()) LocationSummary(instruction);
-  locations->SetInAt(0, Location::RegisterOrConstant(instruction->InputAt(1)));
+  locations->SetInAt(0, Location::RegisterOrConstant(instruction->InputAt(0)));
   locations->SetOut(Location::RequiresRegister(), Location::kNoOutputOverlap);
 }