summaryrefslogtreecommitdiffstats
path: root/reflection-template.patch
diff options
context:
space:
mode:
authorRon Olson <tachoknight@gmail.com>2018-09-09 21:59:42 -0500
committerRon Olson <tachoknight@gmail.com>2018-09-09 21:59:42 -0500
commit8ae0d821d070398ee2f3c1c3087161e6f63dd259 (patch)
treefa2727c2e4b1dbc7a3f513f66a7b85616f7273d3 /reflection-template.patch
parent28d6e210d03cbdab6b86c81e4d8aacf0d26a3066 (diff)
downloadswift-lang-8ae0d821d070398ee2f3c1c3087161e6f63dd259.tar.gz
swift-lang-8ae0d821d070398ee2f3c1c3087161e6f63dd259.tar.xz
swift-lang-8ae0d821d070398ee2f3c1c3087161e6f63dd259.zip
Added patch to handle changes to Clang 7.0 regarding template handling
Diffstat (limited to 'reflection-template.patch')
-rw-r--r--reflection-template.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/reflection-template.patch b/reflection-template.patch
new file mode 100644
index 0000000..22f3ec2
--- /dev/null
+++ b/reflection-template.patch
@@ -0,0 +1,18 @@
+--- swift/include/swift/Reflection/TypeRef.h.orig 2018-09-09 16:18:28.138659278 -0500
++++ swift/include/swift/Reflection/TypeRef.h 2018-09-09 16:20:47.423286114 -0500
+@@ -48,12 +48,12 @@
+
+ #define FIND_OR_CREATE_TYPEREF(Allocator, TypeRefTy, ...) \
+ auto ID = Profile(__VA_ARGS__); \
+- const auto Entry = Allocator.DEPENDENT_TEMPLATE TypeRefTy##s.find(ID); \
+- if (Entry != Allocator.DEPENDENT_TEMPLATE TypeRefTy##s.end()) \
++ const auto Entry = Allocator.TypeRefTy##s.find(ID); \
++ if (Entry != Allocator.TypeRefTy##s.end()) \
+ return Entry->second; \
+ const auto TR = \
+ Allocator.DEPENDENT_TEMPLATE makeTypeRef<TypeRefTy>(__VA_ARGS__); \
+- Allocator.DEPENDENT_TEMPLATE TypeRefTy##s.insert({ID, TR}); \
++ Allocator.TypeRefTy##s.insert({ID, TR}); \
+ return TR;
+
+ /// An identifier containing the unique bit pattern made up of all of the