File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed
Inputs/fake-toolchain/include/c++/v1 Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -34,17 +34,9 @@ public let benchmarks = [
3434public func run_ReadAccessor( _ N: Int ) {
3535 for i in 0 ... N {
3636 for j in 0 ..< 100 {
37- #if os(Linux)
38- let row = vec![ UInt ( j) ] ;
39- #else
4037 let row = vec![ j] ;
41- #endif
4238 for k in 0 ..< 1_000 {
43- #if os(Linux)
44- let element = row [ UInt ( k) ] ;
45- #else
4639 let element = row [ k] ;
47- #endif
4840 blackHole ( element)
4941 }
5042 }
Original file line number Diff line number Diff line change @@ -2718,7 +2718,8 @@ namespace {
27182718 *correctSwiftName);
27192719
27202720 Type SwiftType;
2721- if (Decl->getDeclContext ()->getRedeclContext ()->isTranslationUnit ()) {
2721+ auto clangDC = Decl->getDeclContext ()->getRedeclContext ();
2722+ if (clangDC->isTranslationUnit () || clangDC->isStdNamespace ()) {
27222723 bool IsError;
27232724 StringRef StdlibTypeName;
27242725 MappedTypeNameKind NameMapping;
Original file line number Diff line number Diff line change @@ -7,4 +7,8 @@ void foo(int x) {}
77
88}; // namespace FakeNamespace
99
10+ namespace std {
11+ typedef unsigned long size_t ;
12+ } // namespace std
13+
1014#endif
Original file line number Diff line number Diff line change 99// CHECK: enum FakeNamespace {
1010// CHECK: static func foo(_ x: Int32)
1111// CHECK: }
12+ // CHECK: enum std {
13+ // CHECK: typealias size_t = Int
14+ // CHECK: }
15+
You can’t perform that action at this time.
0 commit comments