From a0e180632411f7fe0edf454e571c42209ee7b540 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 13 Apr 2012 15:59:59 -0700 Subject: Add a SafeMap equivalent to std::map but without the error-prone operator[]. Change-Id: Iae5ba2091c55a34dbd1005cf3d25fce2a8d5c1f9 --- src/compiler/codegen/CodegenUtil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/codegen/CodegenUtil.cc') diff --git a/src/compiler/codegen/CodegenUtil.cc b/src/compiler/codegen/CodegenUtil.cc index 00e78ecf4b..777cf57345 100644 --- a/src/compiler/codegen/CodegenUtil.cc +++ b/src/compiler/codegen/CodegenUtil.cc @@ -857,7 +857,7 @@ void oatAssembleLIR(CompilationUnit* cUnit) */ LIR* insertCaseLabel(CompilationUnit* cUnit, int vaddr, int keyVal) { - std::map::iterator it; + SafeMap::iterator it; it = cUnit->boundaryMap.find(vaddr); if (it == cUnit->boundaryMap.end()) { LOG(FATAL) << "Error: didn't find vaddr 0x" << std::hex << vaddr; -- cgit v1.2.3-59-g8ed1b