[ArgumentPromotion] Remove unnecessary getScalarType() before casting to PointerType...
authorCraig Topper <craig.topper@gmail.com>
Thu, 23 Apr 2020 05:21:54 +0000 (22:21 -0700)
committerCraig Topper <craig.topper@gmail.com>
Thu, 23 Apr 2020 05:51:41 +0000 (22:51 -0700)
commit25807452ac1bca643bdc00f7555e9cad03097b0e
tree3e4a674369d0dbb38d9453c417dd350148f1f27f
parent4330d783e7d577c71d424a457fa146db0590a2a6
[ArgumentPromotion] Remove unnecessary getScalarType() before casting to PointerType. NFC

I don't believe this pass deals with vectors of pointers. I think
this getScalarType() was added during a mechanical opaque pointer
change of the interface to GetElementPtrInst::getIndexedType.
llvm/lib/Transforms/IPO/ArgumentPromotion.cpp