Recommit r236670: [opaque pointer type] Pass explicit pointer type through GEP consta...
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 7 May 2015 17:28:58 +0000 (17:28 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 7 May 2015 17:28:58 +0000 (17:28 +0000)
commitad80c2d9ed1a348deaacdf11aa17c40382a97ac7
tree6b9d8382031f3641c6bf9c0e43780376872cde45
parentaa46024ea3f5190bf6b5ae5a2c2af03ad947efd3
Recommit r236670: [opaque pointer type] Pass explicit pointer type through GEP constant folding""

Clang regressions were caused by more stringent assertion checking
introduced by this change. Small fix needed to clang has been committed
in r236751.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236752 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/ConstantFold.cpp
lib/IR/ConstantFold.h
lib/IR/Constants.cpp
lib/Transforms/IPO/GlobalOpt.cpp