Skip to content

Commit f3111cc

Browse files
committed
[clang][bytecode][NFC] Remove a useless cast
getDecl() now always returns a ValueDecl.
1 parent 781cb10 commit f3111cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ByteCode/MemberPointer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ APValue MemberPointer::toAPValue(const ASTContext &ASTCtx) const {
7979
if (hasBase())
8080
return Base.toAPValue(ASTCtx);
8181

82-
return APValue(cast<ValueDecl>(getDecl()), /*IsDerivedMember=*/false,
82+
return APValue(getDecl(), /*IsDerivedMember=*/false,
8383
/*Path=*/{});
8484
}
8585

0 commit comments

Comments
 (0)