summaryrefslogtreecommitdiff
path: root/lib/CodeGen/GCStrategy.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-02-03 21:17:20 +0000
committerBill Wendling <isanbard@gmail.com>2009-02-03 21:17:20 +0000
commitb9dcef2a00f1ac35442393c951c21272527c8625 (patch)
treef0e872b8a94942a11ed8078a44945819264bf3c4 /lib/CodeGen/GCStrategy.cpp
parent1aa7056b13ac9e0f3fe176d37739ec484d4fe4da (diff)
downloadllvm-b9dcef2a00f1ac35442393c951c21272527c8625.tar.gz
llvm-b9dcef2a00f1ac35442393c951c21272527c8625.tar.bz2
llvm-b9dcef2a00f1ac35442393c951c21272527c8625.tar.xz
Whitespace and comment changes. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63660 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/GCStrategy.cpp')
-rw-r--r--lib/CodeGen/GCStrategy.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/GCStrategy.cpp b/lib/CodeGen/GCStrategy.cpp
index b851c074c2..3ec368fe73 100644
--- a/lib/CodeGen/GCStrategy.cpp
+++ b/lib/CodeGen/GCStrategy.cpp
@@ -329,6 +329,7 @@ void MachineCodeAnalysis::getAnalysisUsage(AnalysisUsage &AU) const {
unsigned MachineCodeAnalysis::InsertLabel(MachineBasicBlock &MBB,
MachineBasicBlock::iterator MI) const {
unsigned Label = MMI->NextLabelID();
+ // N.B. we assume that MI is *not* equal to the "end()" iterator.
BuildMI(MBB, MI, MI->getDebugLoc(),
TII->get(TargetInstrInfo::GC_LABEL)).addImm(Label);
return Label;