[Index] Remove an unnecessary cast (NFC) (#146944)
We don't need to cast twice to the same type.
diff --git a/clang/lib/Index/IndexBody.cpp b/clang/lib/Index/IndexBody.cpp
index 98ce6f7..1979117 100644
--- a/clang/lib/Index/IndexBody.cpp
+++ b/clang/lib/Index/IndexBody.cpp
@@ -69,7 +69,7 @@
while (isa<CastExpr>(*It) || isa<ParenExpr>(*It)) {
if (auto ICE = dyn_cast<ImplicitCastExpr>(*It)) {
if (ICE->getCastKind() == CK_LValueToRValue)
- Roles |= (unsigned)(unsigned)SymbolRole::Read;
+ Roles |= (unsigned)SymbolRole::Read;
}
if (It == StmtStack.begin())
break;