Skip to content

Commit

Permalink
[clang] Remove unnecessary virtual inheritance in TargetInfo
Browse files Browse the repository at this point in the history
Since the `TargetInfo` has no diamond-like inheritance diagram,
the `virtual` keyword is not necessary.

Differential Revision: https://reviews.llvm.org/D148961
  • Loading branch information
Stoorx committed Apr 24, 2023
1 parent 40136ec commit 368112e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/include/clang/Basic/TargetInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 368112e

Please sign in to comment.