diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-24 11:23:24 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-24 11:23:24 -0800 |
commit | 8a6110c2f8a3b0278498bcad4a74ff65ea01119e (patch) | |
tree | 8a90728e0fb274d6126ffa1f717bcad36fa86be9 /lib/Target/CppBackend/CPPBackend.cpp | |
parent | 58b92a53e549ca83ceca4c6e4e027e9a1a810a04 (diff) |
fix memory initializer emitting
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 9f2422ee85..de1e4a246c 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -2194,7 +2194,7 @@ void CppWriter::printModuleBody() { // TODO fix commas Out << "/* memory initializer */ allocate(["; printCommaSeparated(GlobalData64); - if (GlobalData64.size() > 0 && GlobalData32.size() > 0) { + if (GlobalData64.size() > 0 && GlobalData32.size() + GlobalData8.size() > 0) { Out << ","; } printCommaSeparated(GlobalData32); |