diff options
author | Eric Christopher <echristo@apple.com> | 2012-04-03 17:55:42 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-04-03 17:55:42 +0000 |
commit | fa5b05013679fe04bac94084d411d2774608236f (patch) | |
tree | 68eba184a21abea8e5b8358064f3d9c4b3860c73 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | d5be48a9db6bf9b1b399e1309b9654e06a616165 (diff) |
Fix thinko check for number of operands to be the one that actually
might have more than 19 operands. Add a testcase to make sure I
never screw that up again.
Part of rdar://11026482
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 420f2cdcb2..b3a9a14a1b 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1200,7 +1200,7 @@ static DebugLoc getFnDebugLoc(DebugLoc DL, const LLVMContext &Ctx) { if (SP.Verify()) { // Check for number of operands since the compatibility is // cheap here. - if (Scope->getNumOperands() > 19) + if (SP->getNumOperands() > 19) return DebugLoc::get(SP.getScopeLineNumber(), 0, SP); else return DebugLoc::get(SP.getLineNumber(), 0, SP); |