commit | 679dfafd33383e09d3a5bebf5ce83e774a6d4d15 | [log] [tgz] |
---|---|---|
author | Tobias Grosser <tobias@grosser.es> | Sat May 23 05:14:09 2015 +0000 |
committer | Tobias Grosser <tobias@grosser.es> | Sat May 23 05:14:09 2015 +0000 |
tree | ffe38a6e79b2c7b5a7b73a03e9c673b6a3ce1130 | |
parent | 5df78fa35b75e51014884ec5eae7fc0ff83f7dd8 [diff] [blame] |
Use unique_ptr to clarify ownership of ScopStmt llvm-svn: 238090
diff --git a/polly/lib/CodeGen/Utils.cpp b/polly/lib/CodeGen/Utils.cpp index f2ddfd5..fa9a209 100644 --- a/polly/lib/CodeGen/Utils.cpp +++ b/polly/lib/CodeGen/Utils.cpp
@@ -37,7 +37,7 @@ std::string OldName = OldBlock->getName(); // Update ScopInfo. - for (ScopStmt *Stmt : S) + for (auto &Stmt : S) if (Stmt->getBasicBlock() == OldBlock) { Stmt->setBasicBlock(NewBlock); break;