aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-04-03 17:55:42 +0000
committerEric Christopher <echristo@apple.com>2012-04-03 17:55:42 +0000
commitfa5b05013679fe04bac94084d411d2774608236f (patch)
tree68eba184a21abea8e5b8358064f3d9c4b3860c73 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentd5be48a9db6bf9b1b399e1309b9654e06a616165 (diff)
downloadexternal_llvm-fa5b05013679fe04bac94084d411d2774608236f.zip
external_llvm-fa5b05013679fe04bac94084d411d2774608236f.tar.gz
external_llvm-fa5b05013679fe04bac94084d411d2774608236f.tar.bz2
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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 420f2cd..b3a9a14 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);