aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-15 04:59:17 +0000
committerChris Lattner <sabre@nondot.org>2005-03-15 04:59:17 +0000
commitc5e7df1d606fd4d394344f0322a6fe9c488b4000 (patch)
treed673a1f9d5021ad3999a09b8af3373a7aba27274
parente4d5c441e04bdc00ccf1804744af670655123b07 (diff)
downloadexternal_llvm-c5e7df1d606fd4d394344f0322a6fe9c488b4000.zip
external_llvm-c5e7df1d606fd4d394344f0322a6fe9c488b4000.tar.gz
external_llvm-c5e7df1d606fd4d394344f0322a6fe9c488b4000.tar.bz2
stop using arg_back
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20598 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/CBackend/CBackend.cpp2
-rw-r--r--lib/Target/CBackend/Writer.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index d010509..254b5a4 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -1472,7 +1472,7 @@ void CWriter::visitCallInst(CallInst &I) {
<< I.getParent()->getParent()->getName() << "'!\n";
abort();
}
- writeOperand(&I.getParent()->getParent()->arg_back());
+ writeOperand(--I.getParent()->getParent()->arg_end());
Out << ')';
return;
case Intrinsic::vaend:
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp
index d010509..254b5a4 100644
--- a/lib/Target/CBackend/Writer.cpp
+++ b/lib/Target/CBackend/Writer.cpp
@@ -1472,7 +1472,7 @@ void CWriter::visitCallInst(CallInst &I) {
<< I.getParent()->getParent()->getName() << "'!\n";
abort();
}
- writeOperand(&I.getParent()->getParent()->arg_back());
+ writeOperand(--I.getParent()->getParent()->arg_end());
Out << ')';
return;
case Intrinsic::vaend: