summaryrefslogtreecommitdiff
path: root/compiler/optimizing/codegen_test.cc
diff options
context:
space:
mode:
author David Brazdil <dbrazdil@google.com> 2016-02-12 16:34:49 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2016-02-12 16:34:49 +0000
commit0d15f267eb9d629e26df0c603c39f9665951e970 (patch)
tree08b0635a78a64f44fd9c69dcdd1556d54e6add60 /compiler/optimizing/codegen_test.cc
parent6c5907ad7ae1d242b90d692c478ba68b5cdcb44a (diff)
parent6e332529c33be4d7dae5dad3609a839f4c0d3bfc (diff)
Merge "ART: Remove HTemporary"
Diffstat (limited to 'compiler/optimizing/codegen_test.cc')
-rw-r--r--compiler/optimizing/codegen_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc
index 322a577bbf..4f37c37e39 100644
--- a/compiler/optimizing/codegen_test.cc
+++ b/compiler/optimizing/codegen_test.cc
@@ -777,9 +777,9 @@ TEST_F(CodegenTest, MaterializedCondition2) {
HIntConstant* cst_rhs = graph->GetIntConstant(rhs[i]);
HLessThan cmp_lt(cst_lhs, cst_rhs);
if_block->AddInstruction(&cmp_lt);
- // We insert a temporary to separate the HIf from the HLessThan and force
- // the materialization of the condition.
- HTemporary force_materialization(0);
+ // We insert a dummy instruction to separate the HIf from the HLessThan
+ // and force the materialization of the condition.
+ HMemoryBarrier force_materialization(MemBarrierKind::kAnyAny, 0);
if_block->AddInstruction(&force_materialization);
HIf if_lt(&cmp_lt);
if_block->AddInstruction(&if_lt);