[llvm-commits] [llvm] r80618 - /llvm/trunk/lib/Analysis/DebugInfo.cpp

Devang Patel dpatel at apple.com
Mon Aug 31 13:27:49 PDT 2009


Author: dpatel
Date: Mon Aug 31 15:27:49 2009
New Revision: 80618

URL: http://llvm.org/viewvc/llvm-project?rev=80618&view=rev
Log:
Oops. Fix inverted logic in assertion check.

Modified:
    llvm/trunk/lib/Analysis/DebugInfo.cpp

Modified: llvm/trunk/lib/Analysis/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/DebugInfo.cpp?rev=80618&r1=80617&r2=80618&view=diff

==============================================================================
--- llvm/trunk/lib/Analysis/DebugInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/DebugInfo.cpp Mon Aug 31 15:27:49 2009
@@ -130,7 +130,7 @@
 /// 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 @@
 
 /// 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 @@
 /// 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 @@
 
 /// 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 @@
 /// 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 @@
 /// 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;





More information about the llvm-commits mailing list