]> granicus.if.org Git - clang/commitdiff
Make sure, for sure this time, that expressions do not have reference type
authorDouglas Gregor <dgregor@apple.com>
Tue, 17 Nov 2009 16:44:57 +0000 (16:44 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 17 Nov 2009 16:44:57 +0000 (16:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89104 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Expr.h

index 57c3a1291a04a089fb219da4aae577c7b7c30aa4..dfc5b13f28d3044505f76516a6ba94c629b94952 100644 (file)
@@ -87,7 +87,7 @@ public:
     // type. Additionally, inspect Expr::isLvalue to determine whether
     // an expression that is adjusted in this manner should be
     // considered an lvalue.
-    assert((TR.isNull() || !TR->isReferenceType()) &&
+    assert((t.isNull() || !t->isReferenceType()) &&
            "Expressions can't have reference type");
 
     TR = t;