This is an archive of the discontinued LLVM Phabricator instance.

misc-misplaced-widening-cast: fix assertion
ClosedPublic

Authored by AndersRonnholm on Aug 14 2017, 4:25 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

AndersRonnholm created this revision.Aug 14 2017, 4:25 AM

LGTM. I let others approve this.

This revision is now accepted and ready to land.Aug 15 2017, 3:43 AM
xazax.hun added inline comments.Aug 15 2017, 3:45 AM
test/clang-tidy/misc-misplaced-widening-cast-explicit-only.cpp
63 ↗(On Diff #110940)

Isn't this testcase a bit overcomplicated to demonstrate the issue?

alexfh accepted this revision.Aug 17 2017, 7:52 AM

LG. Thank you for the fix!

test/clang-tidy/misc-misplaced-widening-cast-explicit-only.cpp
63 ↗(On Diff #110940)

It's what creduce spat out a few hours after I had run it on a pretty large preprocessed source. I wouldn't spend more time simplifying the case ;)

This revision was automatically updated to reflect the committed changes.