From: Douglas Gregor Date: Tue, 17 Nov 2009 16:44:57 +0000 (+0000) Subject: Make sure, for sure this time, that expressions do not have reference type X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=905d11d53aeb6b26744f44fedc2b2820c7a62df6;p=clang Make sure, for sure this time, that expressions do not have reference type git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89104 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 57c3a1291a..dfc5b13f28 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -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;