mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Swift: remove unused patches
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
In C++20 aggregate initialization on classes with user-declared constructor is not
|
||||
available, while in C++11-C++17 it was available if they were defaulted or deleted.
|
||||
|
||||
diff --git a/include/swift/Driver/Compilation.h b/include/swift/Driver/Compilation.h
|
||||
index ee76f92e0de..bd987157593 100644
|
||||
--- a/include/swift/Driver/Compilation.h
|
||||
+++ b/include/swift/Driver/Compilation.h
|
||||
@@ -89,6 +89,9 @@ public:
|
||||
/// This data is used for cross-module module dependencies.
|
||||
fine_grained_dependencies::ModuleDepGraph depGraph;
|
||||
|
||||
+ Result(bool hadAbnormalExit = false, int exitCode = 0, fine_grained_dependencies::ModuleDepGraph depGraph = {})
|
||||
+ : hadAbnormalExit{hadAbnormalExit}, exitCode{exitCode}, depGraph{std::move(depGraph)} {}
|
||||
+
|
||||
Result(const Result &) = delete;
|
||||
Result &operator=(const Result &) = delete;
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
In C++20 the removed operators are available via operator rewriting and
|
||||
implicit constructors, providing them leads to ambiguity.
|
||||
|
||||
diff --git a/include/swift/SIL/SILValue.h b/include/swift/SIL/SILValue.h
|
||||
index 378ca039c7e..37c119c50c1 100644
|
||||
--- a/include/swift/SIL/SILValue.h
|
||||
+++ b/include/swift/SIL/SILValue.h
|
||||
@@ -271,16 +271,6 @@ struct ValueOwnershipKind {
|
||||
|
||||
explicit operator bool() const { return value != OwnershipKind::Any; }
|
||||
|
||||
- bool operator==(ValueOwnershipKind other) const {
|
||||
- return value == other.value;
|
||||
- }
|
||||
- bool operator!=(ValueOwnershipKind other) const {
|
||||
- return !(value == other.value);
|
||||
- }
|
||||
-
|
||||
- bool operator==(innerty other) const { return value == other; }
|
||||
- bool operator!=(innerty other) const { return !(value == other); }
|
||||
-
|
||||
/// We merge by moving down the lattice.
|
||||
ValueOwnershipKind merge(ValueOwnershipKind rhs) const {
|
||||
return value.meet(rhs.value);
|
||||
Reference in New Issue
Block a user