OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2209d16
)
[YAMLIO] Wrap explicit specialization in llvm::yaml to appease build bots
author
Fangrui Song
<maskray@google.com>
Fri, 12 Jul 2019 06:23:24 +0000
(06:23 +0000)
committer
Fangrui Song
<maskray@google.com>
Fri, 12 Jul 2019 06:23:24 +0000
(06:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365876
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/Support/YAMLIOTest.cpp
patch
|
blob
|
history
diff --git
a/unittests/Support/YAMLIOTest.cpp
b/unittests/Support/YAMLIOTest.cpp
index
a757040
..
e02f68f
100644
(file)
--- a/
unittests/Support/YAMLIOTest.cpp
+++ b/
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;