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. llvm-svn: 181748
This commit is contained in:
parent
11ecabf4eb
commit
7b770c6aed
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue