This is an archive of the discontinued LLVM Phabricator instance.

Remove unnecessary .get() on smart pointers in isa, cast, and dyn_cast.
AbandonedPublic

Authored by jlebar on Jan 7 2016, 8:26 PM.

Details

Reviewers
dblaikie
Summary

Depends on D15910.

Diff Detail

Event Timeline

jlebar updated this revision to Diff 44311.Jan 7 2016, 8:26 PM
jlebar retitled this revision from to Remove unnecessary .get() on smart pointers in isa, cast, and dyn_cast..
jlebar updated this object.
jlebar added a reviewer: dblaikie.
jlebar added a subscriber: llvm-commits.
dblaikie edited edge metadata.Jan 13 2016, 3:22 PM

Looks good - a few optional comments. Feel free to commit with or without the suggested changes, as you see fit.

lib/DebugInfo/PDB/PDBContext.cpp
104

Might want to ensure we have '*'s on the LHS especially when casting from a smart pointer - might be extra confusing getting a raw pointer from a smart pointer.

lib/Object/ELFYAML.cpp
716

These might be more obvious (then there's no interesting smart pointer to raw pointer conversions, etc) if the * was inside the cast instead of outside - but not sure.

tools/llvm-pdbdump/ClassDefinitionDumper.cpp
86

some more missing '*' (I know, not introduced by this patch, but possibly exacerbated)

jlebar updated this revision to Diff 44822.Jan 13 2016, 6:01 PM
jlebar marked 3 inline comments as done.
jlebar edited edge metadata.

Address dblaikie's review.

Thank you for the review. I also like auto*; I went through and added that where applicable.

I'll check this in once we're agreed on D15910.

jlebar abandoned this revision.Jan 22 2016, 5:28 PM