Erm. Would be nice to initialize this variable. . .
authorBill Wendling <isanbard@gmail.com>
Tue, 3 Feb 2009 22:55:54 +0000 (22:55 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 3 Feb 2009 22:55:54 +0000 (22:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63677 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineFunction.cpp

index fc9aa843e7889413d2e0c22f0a6b366ae64dac7b..38dd4033fb93b6087a53ef8ed0564f4312bdc1d5 100644 (file)
@@ -398,7 +398,7 @@ unsigned MachineFunction::getOrCreateDebugLocID(unsigned Src, unsigned Line,
 
 /// getDebugLocTuple - Get the DebugLocTuple for a given DebugLoc object.
 const DebugLocTuple &MachineFunction::getDebugLocTuple(DebugLoc DL) {
-  unsigned Idx;
+  unsigned Idx = DL.getIndex();
   assert(Idx < DebugLocInfo.DebugLocations.size() &&
          "Invalid index into debug locations!");
   return DebugLocInfo.DebugLocations[Idx];