Skip to content

Commit

Permalink
[clang] Fix two unused variable warnings from if statements. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
topperc committed Mar 17, 2023
1 parent e775c92 commit 807d397
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/lib/Driver/ToolChains/Clang.cpp
Expand Up @@ -1993,7 +1993,7 @@ void Clang::AddMIPSTargetArgs(const ArgList &Args,
void Clang::AddPPCTargetArgs(const ArgList &Args,
ArgStringList &CmdArgs) const {
const llvm::Triple &T = getToolChain().getTriple();
if (const Arg *A = Args.getLastArg(options::OPT_mtune_EQ)) {
if (Args.getLastArg(options::OPT_mtune_EQ)) {
CmdArgs.push_back("-tune-cpu");
std::string CPU = ppc::getPPCTuneCPU(Args, T);
CmdArgs.push_back(Args.MakeArgString(CPU));
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Sema/SemaExprMember.cpp
Expand Up @@ -164,7 +164,7 @@ static IMAKind ClassifyImplicitMemberAccess(Sema &SemaRef,
if (auto *MD = dyn_cast<CXXMethodDecl>(DC))
contextClass = MD->getParent()->getCanonicalDecl();
else if (auto *RD = dyn_cast<CXXRecordDecl>(DC))
contextClass = cast<CXXRecordDecl>(DC);
contextClass = RD;
else
return AbstractInstanceResult ? AbstractInstanceResult
: IMA_Error_StaticContext;
Expand Down

0 comments on commit 807d397

Please sign in to comment.