[clang] Remove unnecessary virtual inheritance in `TargetInfo`
authorStoorx <me@stoorx.one>
Fri, 21 Apr 2023 21:06:58 +0000 (00:06 +0300)
committerStoorx <me@stoorx.one>
Mon, 24 Apr 2023 09:14:30 +0000 (12:14 +0300)
Since the `TargetInfo` has no diamond-like inheritance diagram,
the `virtual` keyword is not necessary.

Differential Revision: https://reviews.llvm.org/D148961

clang/include/clang/Basic/TargetInfo.h

index 6de5d90..9e4d099 100644 (file)
@@ -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;