Skip to content

Commit ac12480

Browse files
authored
Merge pull request #7869 from practicalswift/gardening-20170302
2 parents d15f09c + 00a48e7 commit ac12480

File tree

7 files changed

+5
-22
lines changed

7 files changed

+5
-22
lines changed

include/swift/Runtime/Config.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#ifndef SWIFT_RUNTIME_CONFIG_H
1818
#define SWIFT_RUNTIME_CONFIG_H
1919

20+
// Bring in visibility attribute macros for library visibility.
2021
#include "llvm/Support/Compiler.h"
2122

2223
/// Does the current Swift platform support "unbridged" interoperation
@@ -187,9 +188,6 @@
187188

188189
#endif
189190

190-
// Bring in visibility attribute macros for library visibility.
191-
#include "llvm/Support/Compiler.h"
192-
193191
// Generates a name of the runtime entry's implementation by
194192
// adding an underscore as a prefix and a suffix.
195193
#define SWIFT_RT_ENTRY_IMPL(Name) _##Name##_

include/swift/Syntax/UnknownSyntax.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- UnknownSyntax.h - Swift Unknown Syntax Interface -----------------===//
1+
//===--- UnknownSyntax.h - Swift Unknown Syntax Interface -------*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

lib/Parse/ParseIfConfig.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- ParseDecl.cpp - Swift Language Parser for #if directives -- ------===//
1+
//===--- ParseIfConfig.cpp - Swift Language Parser for #if directives -----===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

lib/SILOptimizer/Mandatory/AddressLowering.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,6 @@ class ValueStorageMap {
9292

9393
return valueVector.back().second;
9494
}
95-
96-
// Replace entry for `oldValue` with an entry for `newValue` preserving the
97-
// the mapped ValueStorage.
98-
void replaceValue(SILValue oldValue, SILValue newValue) {
99-
auto hashIter = valueHashMap.find(oldValue);
100-
assert(hashIter != valueHashMap.end() && "Missing SILValue");
101-
unsigned idx = hashIter->second;
102-
valueHashMap.erase(hashIter);
103-
104-
valueVector[idx].first = newValue;
105-
106-
auto hashResult = valueHashMap.insert(std::make_pair(newValue, idx));
107-
assert(hashResult.second && "SILValue already mapped");
108-
}
10995
};
11096
} // end anonymous namespace
11197

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma clang assume_nonnull begin
22

33
struct __attribute__((swift_name("VeryImportantCStruct"))) SomeCStruct {
4-
int field;
4+
int field;
55
};
66

77
#pragma clang assume_nonnull end

unittests/runtime/Refcounting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ TEST(RefcountingTest, isUniquelyReferencedOrPinned) {
180180
// RC big, unpinned
181181
EXPECT_FALSE(swift_isUniquelyReferencedOrPinned_nonNull_native(object));
182182

183-
auto pinResult = swift_tryPin(object);
183+
swift_tryPin(object);
184184
// RC big, pinned
185185
EXPECT_TRUE(swift_isUniquelyReferencedOrPinned_nonNull_native(object));
186186

unittests/runtime/weak.mm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include <objc/runtime.h>
1515
#include "swift/Runtime/HeapObject.h"
1616
#include "swift/Runtime/Metadata.h"
17-
#include "swift/Runtime/Metadata.h"
1817
#include "gtest/gtest.h"
1918

2019
using namespace swift;

0 commit comments

Comments
 (0)