Depends on D78395.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp | ||
---|---|---|
230 | I think I'd tend to deref first, then cast (the earlier the constraint is applied the better/tools can diagnose the problem closer to the source), but don't mind either way. |
llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp | ||
---|---|---|
230 | I see what you mean. Here, I wouldn't want to introduce another variable, and I think there's little ambiguity where a failure may happen, since cast would be the one to trigger it. |
llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp | ||
---|---|---|
230 | I think the suggestion was to put the * inside the parentheses instead outside the cast. |
llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp | ||
---|---|---|
230 | That was the notion, yeah - no big deal though & sorry for the lack of clarity. |
llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp | ||
---|---|---|
230 | Oh! I see. committed https://github.com/llvm/llvm-project/commit/1586d0d38253be72e90b8494a57f546bd4e23b0f |
I think I'd tend to deref first, then cast (the earlier the constraint is applied the better/tools can diagnose the problem closer to the source), but don't mind either way.