mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Assert that DIEEntries are constructed with non-null DIEs
This just brings a crash a little further forward from DWARF emission to DIE construction to make errors easier to diagnose. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181748 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
123f18bcb9
commit
17a692e7f1
1 file changed
+3
-1
@@ -325,7 +325,9 @@ namespace llvm {
|
||||
class DIEEntry : public DIEValue {
|
||||
DIE *const Entry;
|
||||
public:
|
||||
explicit DIEEntry(DIE *E) : DIEValue(isEntry), Entry(E) {}
|
||||
explicit DIEEntry(DIE *E) : DIEValue(isEntry), Entry(E) {
|
||||
assert(E && "Cannot construct a DIEEntry with a null DIE");
|
||||
}
|
||||
|
||||
DIE *getEntry() const { return Entry; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user