[llvm] 571b0d8 - [IFS] Fix the copy constructor warning in IFSStub.cpp
Haowei Wu via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 13 10:19:41 PDT 2021
Author: Haowei Wu
Date: 2021-08-13T10:17:53-07:00
New Revision: 571b0d84d2071f403980823989fdb90288bca972
URL: https://github.com/llvm/llvm-project/commit/571b0d84d2071f403980823989fdb90288bca972
DIFF: https://github.com/llvm/llvm-project/commit/571b0d84d2071f403980823989fdb90288bca972.diff
LOG: [IFS] Fix the copy constructor warning in IFSStub.cpp
This change fixes the gcc warning on copy constructor in IFSStub.cpp
file.
Differential Revision: https://reviews.llvm.org/D108000
Added:
Modified:
llvm/lib/InterfaceStub/IFSStub.cpp
Removed:
################################################################################
diff --git a/llvm/lib/InterfaceStub/IFSStub.cpp b/llvm/lib/InterfaceStub/IFSStub.cpp
index bbc91ada1ded6..008263f8db9fb 100644
--- a/llvm/lib/InterfaceStub/IFSStub.cpp
+++ b/llvm/lib/InterfaceStub/IFSStub.cpp
@@ -29,7 +29,7 @@ IFSStub::IFSStub(IFSStub &&Stub) {
Symbols = std::move(Stub.Symbols);
}
-IFSStubTriple::IFSStubTriple(IFSStubTriple const &Stub) {
+IFSStubTriple::IFSStubTriple(IFSStubTriple const &Stub) : IFSStub() {
IfsVersion = Stub.IfsVersion;
Target = Stub.Target;
SoName = Stub.SoName;
@@ -37,7 +37,7 @@ IFSStubTriple::IFSStubTriple(IFSStubTriple const &Stub) {
Symbols = Stub.Symbols;
}
-IFSStubTriple::IFSStubTriple(IFSStub const &Stub) {
+IFSStubTriple::IFSStubTriple(IFSStub const &Stub) : IFSStub() {
IfsVersion = Stub.IfsVersion;
Target = Stub.Target;
SoName = Stub.SoName;
More information about the llvm-commits
mailing list