Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks!
clang/lib/Sema/SemaExpr.cpp | ||
---|---|---|
10055–10056 | You can simplify this a bit: RHSTy = RHSTy.getNonReferenceType(); I think this should also be done before line 10027 so that sizeof(p) / sizeof(decltype(*p)) produces a warning too. Perhaps remove the reference on line 10023 (since the expression case can never have reference type anyway): - RHSTy = RUE->getArgumentType(); + RHSTy = RUE->getArgumentType().getNonReferenceType(); |
clang/lib/Sema/SemaExpr.cpp | ||
---|---|---|
10055–10056 | Thanks, applied. |
This comment was removed by xbolva00.
Comment Actions
I implemented suggested change so I assume it is fine. I will commit it tomorrow if no futher comments.
You can simplify this a bit: RHSTy = RHSTy.getNonReferenceType();
I think this should also be done before line 10027 so that sizeof(p) / sizeof(decltype(*p)) produces a warning too. Perhaps remove the reference on line 10023 (since the expression case can never have reference type anyway):