mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
land David Blaikie's patch to de-constify Type, with a few tweaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135375 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -421,7 +421,7 @@ Instruction *InstCombiner::commonIDivTransforms(BinaryOperator &I) {
|
||||
|
||||
/// dyn_castZExtVal - Checks if V is a zext or constant that can
|
||||
/// be truncated to Ty without losing bits.
|
||||
static Value *dyn_castZExtVal(Value *V, const Type *Ty) {
|
||||
static Value *dyn_castZExtVal(Value *V, Type *Ty) {
|
||||
if (ZExtInst *Z = dyn_cast<ZExtInst>(V)) {
|
||||
if (Z->getSrcTy() == Ty)
|
||||
return Z->getOperand(0);
|
||||
|
||||
Reference in New Issue
Block a user