aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-08-31 20:27:49 +0000
committerDevang Patel <dpatel@apple.com>2009-08-31 20:27:49 +0000
commitc9db7a5b14625f78cbd619582db31a985eeddd7d (patch)
tree6bea07df35a7ae2de3e1d26d34852cf2c5a49b02 /lib/Analysis
parent08ed20d6841e1879cff1c6b7717b64fd400dc913 (diff)
downloadexternal_llvm-c9db7a5b14625f78cbd619582db31a985eeddd7d.zip
external_llvm-c9db7a5b14625f78cbd619582db31a985eeddd7d.tar.gz
external_llvm-c9db7a5b14625f78cbd619582db31a985eeddd7d.tar.bz2
Oops. Fix inverted logic in assertion check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/DebugInfo.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp
index 6901889..a67539c 100644
--- a/lib/Analysis/DebugInfo.cpp
+++ b/lib/Analysis/DebugInfo.cpp
@@ -130,7 +130,7 @@ GlobalVariable *DIDescriptor::getGlobalVariableField(unsigned Elt) const {
/// 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;
@@ -138,7 +138,7 @@ bool DIDescriptor::isBasicType() const {
/// 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) {
@@ -160,7 +160,7 @@ bool DIDescriptor::isDerivedType() const {
/// 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) {
@@ -179,7 +179,7 @@ bool DIDescriptor::isCompositeType() const {
/// 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) {
@@ -195,7 +195,7 @@ bool DIDescriptor::isVariable() const {
/// 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;
@@ -204,7 +204,7 @@ bool DIDescriptor::isSubprogram() const {
/// 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;