mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Constrain the type of a parameter now that callers without this constraint have been removed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233419 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
77a0728d96
commit
0e622b4f88
@ -316,7 +316,7 @@ private:
|
||||
bool ShouldChangeType(Type *From, Type *To) const;
|
||||
Value *dyn_castNegVal(Value *V) const;
|
||||
Value *dyn_castFNegVal(Value *V, bool NoSignedZero = false) const;
|
||||
Type *FindElementAtOffset(Type *PtrTy, int64_t Offset,
|
||||
Type *FindElementAtOffset(PointerType *PtrTy, int64_t Offset,
|
||||
SmallVectorImpl<Value *> &NewIndices);
|
||||
Instruction *FoldOpIntoSelect(Instruction &Op, SelectInst *SI);
|
||||
|
||||
|
@ -869,11 +869,9 @@ Instruction *InstCombiner::FoldOpIntoPhi(Instruction &I) {
|
||||
/// whether or not there is a sequence of GEP indices into the pointed type that
|
||||
/// will land us at the specified offset. If so, fill them into NewIndices and
|
||||
/// return the resultant element type, otherwise return null.
|
||||
Type *InstCombiner::FindElementAtOffset(Type *PtrTy, int64_t Offset,
|
||||
Type *InstCombiner::FindElementAtOffset(PointerType *PtrTy, int64_t Offset,
|
||||
SmallVectorImpl<Value *> &NewIndices) {
|
||||
assert(PtrTy->isPtrOrPtrVectorTy());
|
||||
|
||||
Type *Ty = PtrTy->getPointerElementType();
|
||||
Type *Ty = PtrTy->getElementType();
|
||||
if (!Ty->isSized())
|
||||
return nullptr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user