Add an assertion about the integrity of the iterator.
authorAdrian Prantl <aprantl@apple.com>
Mon, 13 Oct 2014 20:44:58 +0000 (20:44 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 13 Oct 2014 20:44:58 +0000 (20:44 +0000)
commit2273ca1302d4837aa42b48fec6b35d4e8d667dfe
tree80e2e8cb326dffd646368ac61b08b6a23df260df
parent2400ba69d594996ace665293a0820c1a28aa32c9
Add an assertion about the integrity of the iterator.
Broken parent scope pointers in inlined DIVariables can cause
ensureAbstractVariableIsCreated to insert new abstract scopes, thus
invalidating the iterator in this loop and leading to hard-to-debug
crashes. Useful when manually reducing IR for testcases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219628 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp