summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-08-08 17:12:35 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-08-08 17:12:35 +0000
commitbd56fbb9765995b68cc26911ed623b96d0dec9c8 (patch)
tree9617a9f6616c0b6e7d51ed62584b971f9707bf81 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent77bbb5fd0b5cdc6c8832e2fe38b0c132e71b1f34 (diff)
downloadbcm5719-llvm-bd56fbb9765995b68cc26911ed623b96d0dec9c8.tar.gz
bcm5719-llvm-bd56fbb9765995b68cc26911ed623b96d0dec9c8.zip
DebugInfo: Recommit (reverted in r215217, originally committed in r215157) the assertion that no argument variable is overwritten by subsequent argument variables.
This turned up a bug in clang where arguments were emitted with duplicate argument numbers (see r215227). llvm-svn: 215228
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index cad477be8ef..7150a09cd4c 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1144,6 +1144,7 @@ bool DwarfDebug::addCurrentFnArgument(DbgVariable *Var, LexicalScope *Scope) {
// arguments does the function have at source level.
if (ArgNo > Size)
CurrentFnArguments.resize(ArgNo * 2);
+ assert(!CurrentFnArguments[ArgNo - 1]);
CurrentFnArguments[ArgNo - 1] = Var;
return true;
}
OpenPOWER on IntegriCloud