diff options
author | Dan Gohman <gohman@apple.com> | 2008-06-21 22:00:54 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-06-21 22:00:54 +0000 |
commit | 719de53742167ca3f0e6b2efafb6eac18bd90452 (patch) | |
tree | 99e8ec5247016c652ef9154b01bd244181325589 /lib/ExecutionEngine | |
parent | befc9c16fae1719cafe9f54ab2b67219db44dc11 (diff) | |
download | external_llvm-719de53742167ca3f0e6b2efafb6eac18bd90452.zip external_llvm-719de53742167ca3f0e6b2efafb6eac18bd90452.tar.gz external_llvm-719de53742167ca3f0e6b2efafb6eac18bd90452.tar.bz2 |
Use back() instead of [size()-1].
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp b/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp index 3b10a95..7f01536 100644 --- a/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp @@ -364,7 +364,7 @@ unsigned char* JITDwarfEmitter::EmitExceptionTable(MachineFunction* MF, // Try to merge with the previous call-site. if (CallSites.size()) { - CallSiteEntry &Prev = CallSites[CallSites.size()-1]; + CallSiteEntry &Prev = CallSites.back(); if (Site.PadLabel == Prev.PadLabel && Site.Action == Prev.Action) { // Extend the range of the previous entry. Prev.EndLabel = Site.EndLabel; @@ -979,7 +979,7 @@ JITDwarfEmitter::GetExceptionTableSizeInBytes(MachineFunction* MF) const { // Try to merge with the previous call-site. if (CallSites.size()) { - CallSiteEntry &Prev = CallSites[CallSites.size()-1]; + CallSiteEntry &Prev = CallSites.back(); if (Site.PadLabel == Prev.PadLabel && Site.Action == Prev.Action) { // Extend the range of the previous entry. Prev.EndLabel = Site.EndLabel; |