[clang] 368112e - [clang] Remove unnecessary virtual inheritance in `TargetInfo`
via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 24 02:15:14 PDT 2023
Author: Stoorx
Date: 2023-04-24T12:14:30+03:00
New Revision: 368112e2024aabc91592cd21347968787919f044
URL: https://github.com/llvm/llvm-project/commit/368112e2024aabc91592cd21347968787919f044
DIFF: https://github.com/llvm/llvm-project/commit/368112e2024aabc91592cd21347968787919f044.diff
LOG: [clang] Remove unnecessary virtual inheritance in `TargetInfo`
Since the `TargetInfo` has no diamond-like inheritance diagram,
the `virtual` keyword is not necessary.
Differential Revision: https://reviews.llvm.org/D148961
Added:
Modified:
clang/include/clang/Basic/TargetInfo.h
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/TargetInfo.h b/clang/include/clang/Basic/TargetInfo.h
index 6de5d90b12634..9e4d099b2e4d0 100644
--- a/clang/include/clang/Basic/TargetInfo.h
+++ b/clang/include/clang/Basic/TargetInfo.h
@@ -202,7 +202,7 @@ enum OpenCLTypeKind : uint8_t {
/// Exposes information about the current target.
///
-class TargetInfo : public virtual TransferrableTargetInfo,
+class TargetInfo : public TransferrableTargetInfo,
public RefCountedBase<TargetInfo> {
std::shared_ptr<TargetOptions> TargetOpts;
llvm::Triple Triple;
More information about the cfe-commits
mailing list