From 0b8cdfaef922cac9da13e6a8ac4e428031c02b50 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 14 Jan 2016 22:06:23 +0000 Subject: ART: Fix CompilerDriver::AreInSameOatFile(). Bug: 26317072 Change-Id: I4279ef6559a43b5d59188616712a867f864b5d79 --- compiler/driver/compiler_driver.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'compiler/driver/compiler_driver.h') diff --git a/compiler/driver/compiler_driver.h b/compiler/driver/compiler_driver.h index 3847c8183e..17b2f5e98d 100644 --- a/compiler/driver/compiler_driver.h +++ b/compiler/driver/compiler_driver.h @@ -122,8 +122,10 @@ class CompilerDriver { return true; } auto it1 = dex_file_oat_filename_map_->find(d1); + DCHECK(it1 != dex_file_oat_filename_map_->end()); auto it2 = dex_file_oat_filename_map_->find(d2); - return it1 == it2; + DCHECK(it2 != dex_file_oat_filename_map_->end()); + return it1->second == it2->second; } void CompileAll(jobject class_loader, -- cgit v1.2.3-59-g8ed1b