DescriptionSubzero: Clean up some uses of *_cast<>.
Some casts to size_t for use as array indexes are simply unnecessary.
Some explicit declaration types are changed to "auto" to avoid redundancy with the static_cast type.
A few llvm::dyn_cast<> operations are changed to llvm::cast<>, and vice versa.
A few explicit declaration types are changed to "auto" when used with llvm::cast<> and llvm::dynamic_cast<>. Some of these were missed during an earlier cleansing because of multi-line issues.
There are still a few opportunities related to Variable register numbers, but they are ignored for now because they are being addressed in another CL.
BUG= none
R=jpp@chromium.org
Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=2d6c82679e9786a924b76023aa30e1f44d0f8cbb
Patch Set 1 #Patch Set 2 : Cleanup of llvm::cast<> style operations #
Total comments: 24
Patch Set 3 : Code review changes #Patch Set 4 : More code review changes #
Messages
Total messages: 14 (7 generated)
|