summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/CodegenUtil.cc
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2012-04-13 15:59:59 -0700
committer Elliott Hughes <enh@google.com> 2012-04-14 11:44:21 -0700
commita0e180632411f7fe0edf454e571c42209ee7b540 (patch)
tree97dc85e76c5449ec1a901226c44e0f68fec89870 /src/compiler/codegen/CodegenUtil.cc
parente5eb1914de86129d78e965fb9f2e1bfb2aa68640 (diff)
Add a SafeMap equivalent to std::map but without the error-prone operator[].
Change-Id: Iae5ba2091c55a34dbd1005cf3d25fce2a8d5c1f9
Diffstat (limited to 'src/compiler/codegen/CodegenUtil.cc')
-rw-r--r--src/compiler/codegen/CodegenUtil.cc2
1 files changed, 1 insertions, 1 deletions
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<unsigned int, LIR*>::iterator it;
+ SafeMap<unsigned int, LIR*>::iterator it;
it = cUnit->boundaryMap.find(vaddr);
if (it == cUnit->boundaryMap.end()) {
LOG(FATAL) << "Error: didn't find vaddr 0x" << std::hex << vaddr;