Skip to content

Commit 24dda4d

Browse files
fix pr comments
Co-authored-by: Congcong Cai <[email protected]>
1 parent eac5105 commit 24dda4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void UnusedUsingDeclsCheck::check(const MatchFinder::MatchResult &Result) {
186186
// Check user-defined literals
187187
if (const auto *UDL = Result.Nodes.getNodeAs<UserDefinedLiteral>("used")) {
188188
const Decl *CalleeDecl = UDL->getCalleeDecl();
189-
if (const auto *FD = dyn_cast<FunctionDecl>(UDL->getCalleeDecl())) {
189+
if (const auto *FD = dyn_cast<FunctionDecl>(CalleeDecl)) {
190190
if (const FunctionTemplateDecl *FPT = FD->getPrimaryTemplate()) {
191191
removeFromFoundDecls(FPT);
192192
return;

0 commit comments

Comments
 (0)