diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-11-01 14:32:20 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-11-01 14:32:20 +0000 |
commit | ef4b666e841e3917385892713612888ec6c3a056 (patch) | |
tree | bd67b492a776fb9e97d7af64432498f13214fca2 /lib/AST/Expr.cpp | |
parent | 292d67bb69e878104d2cdc1a1f72264e4fc2852a (diff) |
Fix an incorrect assert, the LHS can be an LValue.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167232 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 114aad5463..61dd8bd5a6 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -81,7 +81,7 @@ Expr::skipRValueSubobjectAdjustments( } } else if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) { if (BO->isPtrMemOp()) { - assert(BO->getLHS()->isRValue()); + assert(BO->getRHS()->isRValue()); E = BO->getLHS(); const MemberPointerType *MPT = BO->getRHS()->getType()->getAs<MemberPointerType>(); |