Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lucie Gerard
Clazy
Commits
8b4f4391
Commit
8b4f4391
authored
Feb 20, 2017
by
Sergio Martins
Browse files
temporary-iterator: fix on Windows
For some reason it's an xvalue here..
parent
9a0cd362
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/checks/level0/temporaryiterator.cpp
View file @
8b4f4391
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment