[llvm-commits] [llvm] r52600 - in /llvm/trunk/lib: CodeGen/DwarfWriter.cpp ExecutionEngine/JIT/JITDwarfEmitter.cpp
Dan Gohman
gohman at apple.com
Sat Jun 21 15:00:55 PDT 2008
Author: djg
Date: Sat Jun 21 17:00:54 2008
New Revision: 52600
URL: http://llvm.org/viewvc/llvm-project?rev=52600&view=rev
Log:
Use back() instead of [size()-1].
Modified:
llvm/trunk/lib/CodeGen/DwarfWriter.cpp
llvm/trunk/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp
Modified: llvm/trunk/lib/CodeGen/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DwarfWriter.cpp?rev=52600&r1=52599&r2=52600&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/DwarfWriter.cpp Sat Jun 21 17:00:54 2008
@@ -3304,7 +3304,7 @@
// 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;
Modified: llvm/trunk/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp?rev=52600&r1=52599&r2=52600&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp Sat Jun 21 17:00:54 2008
@@ -364,7 +364,7 @@
// 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 @@
// 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;
More information about the llvm-commits
mailing list