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 | 1ac5813726b340d5de9f241a54eee044e27b6c34 (patch) | |
tree | 349c93f70c20117c8df4f27343fb7d31c8e3d848 /llvm/lib/CodeGen/DwarfWriter.cpp | |
parent | 091f698d29ff1262fcd2c39eafec70e3ba2711a5 (diff) | |
download | bcm5719-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.cpp | 2 |
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; |