[TBAA] Use wrapper objects instead of raw getOperand s; NFC
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 1 Nov 2016 02:58:30 +0000 (02:58 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 1 Nov 2016 02:58:30 +0000 (02:58 +0000)
commit9c729067e93739dcd6deb0f5333d2328425d603c
tree3e5f9ab65a3c168e542898d9be7934745586a4af
parent6e5610fa4d5d3f89671bb7efbdff518b62f5ed99
[TBAA] Use wrapper objects instead of raw getOperand s; NFC

This is intended to make the semantic intent clearer.

The wrapper objects are now generic to avoid `const_cast` s.  Since
`const` ness is part of the API of `MDNode::getMostGenericTBAA` (and
therefore I can't make things `const` all the way through without some
code churn outside TypeBasedAliasAnalysis.cpp), this seemed like the
cleanest solution.

llvm-svn: 285665
llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp