summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_test.cc
diff options
context:
space:
mode:
author Dave Allison <dallison@google.com> 2014-06-24 16:08:12 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-06-23 21:45:06 +0000
commit1528b02c4d5241e785bb680f13de70c355e67429 (patch)
tree79eefb2dd1ae2cade357ef5d8367973bd08b0a34 /compiler/optimizing/graph_test.cc
parenta76724f4bc4a8d36c6c99243835b8e3ddf1eb2d7 (diff)
parent20dfc797dc631bf8d655dcf123f46f13332d3074 (diff)
Merge "Add some more instruction support to optimizing compiler."
Diffstat (limited to 'compiler/optimizing/graph_test.cc')
-rw-r--r--compiler/optimizing/graph_test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/optimizing/graph_test.cc b/compiler/optimizing/graph_test.cc
index 371478c9e7..c59f8366fa 100644
--- a/compiler/optimizing/graph_test.cc
+++ b/compiler/optimizing/graph_test.cc
@@ -30,7 +30,9 @@ static HBasicBlock* createIfBlock(HGraph* graph, ArenaAllocator* allocator) {
graph->AddBlock(if_block);
HInstruction* instr = new (allocator) HIntConstant(4);
if_block->AddInstruction(instr);
- instr = new (allocator) HIf(instr);
+ HInstruction* equal = new (allocator) HEqual(instr, instr);
+ if_block->AddInstruction(equal);
+ instr = new (allocator) HIf(equal);
if_block->AddInstruction(instr);
return if_block;
}