/// isBasicType - Return true if the specified tag is legal for
/// DIBasicType.
bool DIDescriptor::isBasicType() const {
- assert (isNull() && "Invalid descriptor!");
+ assert (!isNull() && "Invalid descriptor!");
unsigned Tag = getTag();
return Tag == dwarf::DW_TAG_base_type;
/// isDerivedType - Return true if the specified tag is legal for DIDerivedType.
bool DIDescriptor::isDerivedType() const {
- assert (isNull() && "Invalid descriptor!");
+ assert (!isNull() && "Invalid descriptor!");
unsigned Tag = getTag();
switch (Tag) {
/// isCompositeType - Return true if the specified tag is legal for
/// DICompositeType.
bool DIDescriptor::isCompositeType() const {
- assert (isNull() && "Invalid descriptor!");
+ assert (!isNull() && "Invalid descriptor!");
unsigned Tag = getTag();
switch (Tag) {
/// isVariable - Return true if the specified tag is legal for DIVariable.
bool DIDescriptor::isVariable() const {
- assert (isNull() && "Invalid descriptor!");
+ assert (!isNull() && "Invalid descriptor!");
unsigned Tag = getTag();
switch (Tag) {
/// isSubprogram - Return true if the specified tag is legal for
/// DISubprogram.
bool DIDescriptor::isSubprogram() const {
- assert (isNull() && "Invalid descriptor!");
+ assert (!isNull() && "Invalid descriptor!");
unsigned Tag = getTag();
return Tag == dwarf::DW_TAG_subprogram;
/// isGlobalVariable - Return true if the specified tag is legal for
/// DIGlobalVariable.
bool DIDescriptor::isGlobalVariable() const {
- assert (isNull() && "Invalid descriptor!");
+ assert (!isNull() && "Invalid descriptor!");
unsigned Tag = getTag();
return Tag == dwarf::DW_TAG_variable;