summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/DwarfWriter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-21 22:00:54 +0000
committerDan Gohman <gohman@apple.com>2008-06-21 22:00:54 +0000
commit1ac5813726b340d5de9f241a54eee044e27b6c34 (patch)
tree349c93f70c20117c8df4f27343fb7d31c8e3d848 /llvm/lib/CodeGen/DwarfWriter.cpp
parent091f698d29ff1262fcd2c39eafec70e3ba2711a5 (diff)
downloadbcm5719-llvm-1ac5813726b340d5de9f241a54eee044e27b6c34.tar.gz
bcm5719-llvm-1ac5813726b340d5de9f241a54eee044e27b6c34.zip
Use back() instead of [size()-1].
llvm-svn: 52600
Diffstat (limited to 'llvm/lib/CodeGen/DwarfWriter.cpp')
-rw-r--r--llvm/lib/CodeGen/DwarfWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp
index 784bf930b58..086786bcab3 100644
--- a/llvm/lib/CodeGen/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/DwarfWriter.cpp
@@ -3304,7 +3304,7 @@ private:
// Try to merge with the previous call-site.
if (PreviousIsInvoke) {
- 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;
OpenPOWER on IntegriCloud