[llvm-commits] [dragonegg] r155125 - /dragonegg/trunk/src/Types.cpp

Duncan Sands baldrick at free.fr
Thu Apr 19 06:21:26 PDT 2012


Author: baldrick
Date: Thu Apr 19 08:21:26 2012
New Revision: 155125

URL: http://llvm.org/viewvc/llvm-project?rev=155125&view=rev
Log:
Workaround for g++-4.3 which has trouble with resolving templates inside a
namespace.

Modified:
    dragonegg/trunk/src/Types.cpp

Modified: dragonegg/trunk/src/Types.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Types.cpp?rev=155125&r1=155124&r2=155125&view=diff
==============================================================================
--- dragonegg/trunk/src/Types.cpp (original)
+++ dragonegg/trunk/src/Types.cpp Thu Apr 19 08:21:26 2012
@@ -1524,7 +1524,7 @@
     typedef tree_node NodeType;
     typedef RecursiveTypeIterator ChildIteratorType;
     static inline NodeType *getEntryNode(tree t) {
-      assert(isa<TYPE>(t) && "Expected a type!");
+      assert(TYPE_P(t) && "Expected a type!");
       return t;
     }
     static inline ChildIteratorType child_begin(tree type) {





More information about the llvm-commits mailing list