Commit 8b4f4391 authored by Sergio Martins's avatar Sergio Martins
Browse files

temporary-iterator: fix on Windows

For some reason it's an xvalue here..
parent 9a0cd362
......@@ -113,8 +113,7 @@ void TemporaryIterator::VisitStmt(clang::Stmt *stm)
return;
Expr *expr = memberExpr->getImplicitObjectArgument();
if (!expr || !expr->isRValue()) // This check is about detaching temporaries, so check for r value
if (!expr || expr->isLValue()) // This check is about detaching temporaries, so check for r value
return;
const Type *containerType = expr->getType().getTypePtrOrNull();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment