Slightly simplify code with helper functions
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 12 Aug 2013 23:15:58 +0000 (23:15 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 12 Aug 2013 23:15:58 +0000 (23:15 +0000)
commit89fa38e15c32318c9106a716d3651625927c11dc
tree1447774c19ef8bb06dabdcb06d69ce3eee5d182f
parentd9a84efe44db2f4d983e49bc7370fc8cef449214
Slightly simplify code with helper functions

e.g. Use Ty->getPointerElementType()
instead of cast<PointerType>(Ty)->getElementType()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188223 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp