[clang] 0f29214 - [clang]Silence warning in MicrosoftCXXABI.cpp
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Thu May 12 09:05:06 PDT 2022
Author: Yaxun (Sam) Liu
Date: 2022-05-12T12:04:05-04:00
New Revision: 0f292141aadb0489231de31de966c239486e019d
URL: https://github.com/llvm/llvm-project/commit/0f292141aadb0489231de31de966c239486e019d
DIFF: https://github.com/llvm/llvm-project/commit/0f292141aadb0489231de31de966c239486e019d.diff
LOG: [clang]Silence warning in MicrosoftCXXABI.cpp
Silence warning with gcc 9.3 about:
[1/351] Building CXX object tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/MicrosoftCXXABI.cpp.o
../../clang/lib/AST/MicrosoftCXXABI.cpp:57:12: warning: 'virtual unsigned int {anonymous}::MicrosoftNumberingContext::getManglingNumber(const clang::VarDecl*, unsigned int)' was hidden [-Woverloaded-virtual]
57 | unsigned getManglingNumber(const VarDecl *VD,
| ^~~~~~~~~~~~~~~~~
../../clang/lib/AST/MicrosoftCXXABI.cpp:80:12: warning: by 'virtual unsigned int {anonymous}::MSHIPNumberingContext::getManglingNumber(const clang::TagDecl*, unsigned int)' [-Woverloaded-virtual]
80 | unsigned getManglingNumber(const TagDecl *TD,
| ^~~~~~~~~~~~~~~~~
Change-Id: Ia519e77c6454eb020228478dd6498eaf7864dae8
Added:
Modified:
clang/lib/AST/MicrosoftCXXABI.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/MicrosoftCXXABI.cpp b/clang/lib/AST/MicrosoftCXXABI.cpp
index b3e26bc889c1..7f4a7b2b9381 100644
--- a/clang/lib/AST/MicrosoftCXXABI.cpp
+++ b/clang/lib/AST/MicrosoftCXXABI.cpp
@@ -69,6 +69,7 @@ class MSHIPNumberingContext : public MicrosoftNumberingContext {
std::unique_ptr<MangleNumberingContext> DeviceCtx;
public:
+ using MicrosoftNumberingContext::getManglingNumber;
MSHIPNumberingContext(MangleContext *DeviceMangler) {
DeviceCtx = createItaniumNumberingContext(DeviceMangler);
}
More information about the cfe-commits
mailing list