projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small changes
[c11tester.git]
/
cyclegraph.cc
diff --git
a/cyclegraph.cc
b/cyclegraph.cc
index 6c7e945e98ee8e58ab0a73911f24b8484a935389..1d9533f4ba9b6f2fa61ae0018bb36dc22de5abcc 100644
(file)
--- a/
cyclegraph.cc
+++ b/
cyclegraph.cc
@@
-70,8
+70,7
@@
void CycleGraph::addNodeEdge(CycleNode *fromnode, CycleNode *tonode, bool forcee
* If the fromnode has a rmwnode, we should
* follow its RMW chain to add an edge at the end.
*/
* If the fromnode has a rmwnode, we should
* follow its RMW chain to add an edge at the end.
*/
- while (fromnode->getRMW()) {
- CycleNode *nextnode = fromnode->getRMW();
+ while (CycleNode * nextnode = fromnode->getRMW()) {
if (nextnode == tonode)
break;
fromnode = nextnode;
if (nextnode == tonode)
break;
fromnode = nextnode;