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 | b81e2b403cd40d4ea8236358c3bb3abf9302e31f (patch) | |
| tree | ad1d8b41cf67ee6829f7750aa0877a02821cc4e3 /llvm/lib/CodeGen | |
| parent | 08ed8921c7ca7255a04aec0970635a243c59ec08 (diff) | |
| download | bcm5719-llvm-b81e2b403cd40d4ea8236358c3bb3abf9302e31f.tar.gz bcm5719-llvm-b81e2b403cd40d4ea8236358c3bb3abf9302e31f.zip | |
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
llvm-svn: 153961
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 420f2cdcb2f..b3a9a14a1b6 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/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); |

