diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-02-03 22:55:54 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-02-03 22:55:54 +0000 |
commit | 77b3be8ea370f9b589d939797a078c6ff63e8691 (patch) | |
tree | 5590e443ac6e3392783e7019d2532dd865c3be4f /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 2c0a4fe4e29b4323fa24303068d4a204a51d33c1 (diff) | |
download | bcm5719-llvm-77b3be8ea370f9b589d939797a078c6ff63e8691.tar.gz bcm5719-llvm-77b3be8ea370f9b589d939797a078c6ff63e8691.zip |
Erm. Would be nice to initialize this variable. . .
llvm-svn: 63677
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index fc9aa843e78..38dd4033fb9 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -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]; |