projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40136ec
)
[clang] Remove unnecessary virtual inheritance in `TargetInfo`
author
Stoorx
<me@stoorx.one>
Fri, 21 Apr 2023 21:06:58 +0000
(
00:06
+0300)
committer
Stoorx
<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
patch
|
blob
|
history
diff --git
a/clang/include/clang/Basic/TargetInfo.h
b/clang/include/clang/Basic/TargetInfo.h
index
6de5d90
..
9e4d099
100644
(file)
--- 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;