[cfe-commits] r47530 - /cfe/trunk/AST/StmtSerialization.cpp
Eli Friedman
eli.friedman at gmail.com
Fri Feb 22 23:32:50 PST 2008
Author: efriedma
Date: Sat Feb 23 01:32:49 2008
New Revision: 47530
URL: http://llvm.org/viewvc/llvm-project?rev=47530&view=rev
Log:
Minor code cleanup.
Modified:
cfe/trunk/AST/StmtSerialization.cpp
Modified: cfe/trunk/AST/StmtSerialization.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/StmtSerialization.cpp?rev=47530&r1=47529&r2=47530&view=diff
==============================================================================
--- cfe/trunk/AST/StmtSerialization.cpp (original)
+++ cfe/trunk/AST/StmtSerialization.cpp Sat Feb 23 01:32:49 2008
@@ -269,11 +269,8 @@
for (unsigned i = 0; i < size; ++i) {
std::vector<char> data;
D.ReadCStr(data, false);
-
- if (data.size() == 0)
- Stmt->Names.push_back(std::string());
- else
- Stmt->Names.push_back(std::string(&data[0], data.size()));
+
+ Stmt->Names.push_back(std::string(data.begin(), data.end()));
}
Stmt->Constraints.reserve(size);
More information about the cfe-commits
mailing list