silence warning
authorJim Grosbach <grosbach@apple.com>
Tue, 17 Aug 2010 20:21:30 +0000 (20:21 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 17 Aug 2010 20:21:30 +0000 (20:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111274 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LocalStackSlotAllocation.cpp

index bfc62cf2d183a2fd311423d3fb1b1a1be17d6845..065cf80ca438bac51843aeab14744b66d509e69a 100644 (file)
@@ -178,6 +178,11 @@ void LocalStackSlotPass::insertFrameReferenceRegisters(MachineFunction &Fn) {
             // what "reasonably" really means. Conservatively, can just
             // use the alignment of the local block.
 
+            // If we have a suitable base register available, use it; otherwise
+            // create a new one.
+            // FIXME: For the moment, just always create a new one.
+
+            ++NumBaseRegisters;
             ++NumReplacements;
           }