This cast seems incorrect looking at similar and may cause errors.
Diff Detail
Diff Detail
Event Timeline
llvm/lib/MC/MCExpr.cpp | ||
---|---|---|
764 | If this dyn_cast is never false (if the original code never hit an assert) then the 'if' condition should be removed, and the cast should remain as a cast (not a dyn_cast) If there are cases where the RHS is not an MCTargetExpr (even though the LHS is) - then this change should include a test case that demonstrates/exercises that case. |
If this dyn_cast is never false (if the original code never hit an assert) then the 'if' condition should be removed, and the cast should remain as a cast (not a dyn_cast)
If there are cases where the RHS is not an MCTargetExpr (even though the LHS is) - then this change should include a test case that demonstrates/exercises that case.