Merge "Enum types now emit operator| and operator|= for easier bitset manipulation."
diff --git a/CompoundType.cpp b/CompoundType.cpp
index 7c8e04a..71d17bf 100644
--- a/CompoundType.cpp
+++ b/CompoundType.cpp
@@ -394,7 +394,8 @@
status_t CompoundType::emitTypeDefinitions(
Formatter &out, const std::string prefix) const {
- status_t err = Scope::emitTypeDefinitions(out, prefix + "::" + localName());
+ std::string space = prefix.empty() ? "" : (prefix + "::");
+ status_t err = Scope::emitTypeDefinitions(out, space + localName());
if (err != OK) {
return err;