浏览代码

[YAMLIO] Wrap explicit specialization in llvm::yaml to appease build bots

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365876 91177308-0d34-0410-b5e6-96231b3b80d8
Fangrui Song 6 年之前
父节点
当前提交
d5826c99ce
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      unittests/Support/YAMLIOTest.cpp

+ 4 - 0
unittests/Support/YAMLIOTest.cpp

@@ -2627,11 +2627,15 @@ struct FooBarMapMap {
   std::map<std::string, FooBar> fbm;
 };
 
+namespace llvm {
+namespace yaml {
 template <> struct MappingTraits<FooBarMapMap> {
   static void mapping(IO &io, FooBarMapMap &x) {
     io.mapRequired("fbm", x.fbm);
   }
 };
+}
+}
 
 TEST(YAMLIO, TestEmptyMapWrite) {
   FooBarMapMap cont;