Skip to content

Commit fa343be

Browse files
committed
Fix warnings in #102848 [-Wunused-but-set-variable]
1 parent 12763a0 commit fa343be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/AST/MicrosoftMangle.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2969,6 +2969,7 @@ void MicrosoftCXXNameMangler::mangleFunctionType(const FunctionType *T,
29692969
if (const auto *AT = ResultType->getContainedAutoType()) {
29702970
assert(AT->getKeyword() == AutoTypeKeyword::Auto &&
29712971
"should only need to mangle auto!");
2972+
(void)AT;
29722973
Out << '?';
29732974
mangleQualifiers(ResultType.getLocalQualifiers(), /*IsMember=*/false);
29742975
Out << '?';
@@ -2987,7 +2988,7 @@ void MicrosoftCXXNameMangler::mangleFunctionType(const FunctionType *T,
29872988
// SourceRange Range)` for details.
29882989
auto UseClangMangling = [](QualType ResultType) {
29892990
QualType T = ResultType;
2990-
while (const auto *PT = dyn_cast<PointerType>(T.getTypePtr())) {
2991+
while (isa<PointerType>(T.getTypePtr())) {
29912992
T = T->getPointeeType();
29922993
if (T.getQualifiers().hasAddressSpace())
29932994
return true;

0 commit comments

Comments
 (0)