forked from OSchip/llvm-project
Fix an incorrect assert, the LHS can be an LValue.
llvm-svn: 167232
This commit is contained in:
parent
da2afc9a70
commit
973aa207e8
|
@ -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>();
|
||||
|
|
|
@ -159,3 +159,15 @@ namespace test2 {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace test3 {
|
||||
struct nsCSSRect {
|
||||
};
|
||||
static int nsCSSRect::* sides;
|
||||
nsCSSRect dimenX;
|
||||
void ParseBoxCornerRadii(int y) {
|
||||
switch (y) {
|
||||
}
|
||||
int& x = dimenX.*sides;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue