OSDN Git Service

ART: Fix CompilerDriver::AreInSameOatFile().
authorVladimir Marko <vmarko@google.com>
Thu, 14 Jan 2016 22:06:23 +0000 (22:06 +0000)
committerVladimir Marko <vmarko@google.com>
Fri, 15 Jan 2016 11:27:22 +0000 (11:27 +0000)
Bug: 26317072
Change-Id: I4279ef6559a43b5d59188616712a867f864b5d79

compiler/driver/compiler_driver.h

index 3847c81..17b2f5e 100644 (file)
@@ -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,