Skip to content

Commit add2c58

Browse files
[Index] Remove an unnecessary cast (NFC) (#146944)
We don't need to cast twice to the same type.
1 parent 755b473 commit add2c58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Index/IndexBody.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class BodyIndexer : public RecursiveASTVisitor<BodyIndexer> {
6969
while (isa<CastExpr>(*It) || isa<ParenExpr>(*It)) {
7070
if (auto ICE = dyn_cast<ImplicitCastExpr>(*It)) {
7171
if (ICE->getCastKind() == CK_LValueToRValue)
72-
Roles |= (unsigned)(unsigned)SymbolRole::Read;
72+
Roles |= (unsigned)SymbolRole::Read;
7373
}
7474
if (It == StmtStack.begin())
7575
break;

0 commit comments

Comments
 (0)