mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 03:32:21 +00:00
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8f78af9f8f
commit
38f682b8b2
File diff suppressed because it is too large
Load Diff
@ -335,7 +335,7 @@
|
||||
|
||||
|
||||
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
||||
#line 1337 "/proj/llvm/llvm-2/tools/llvm-upgrade/UpgradeParser.y"
|
||||
#line 1339 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
|
||||
typedef union YYSTYPE {
|
||||
llvm::Module *ModuleVal;
|
||||
llvm::Function *FunctionVal;
|
||||
|
@ -1169,13 +1169,15 @@ const Type* upgradeGEPIndices(const Type* PTy,
|
||||
// all indices for SequentialType elements. We must retain the same
|
||||
// semantic (zext) for unsigned types.
|
||||
if (const IntegerType *Ity = dyn_cast<IntegerType>(Index->getType()))
|
||||
if (Ity->getBitWidth() < 64 && (*Indices)[i].S == Unsigned)
|
||||
if (Ity->getBitWidth() < 64 && (*Indices)[i].S == Unsigned) {
|
||||
if (CIndices)
|
||||
Index = ConstantExpr::getCast(Instruction::ZExt,
|
||||
cast<Constant>(Index), Type::Int64Ty);
|
||||
else
|
||||
Index = CastInst::create(Instruction::ZExt, Index, Type::Int64Ty,
|
||||
makeNameUnique("gep_upgrade"), CurBB);
|
||||
VIndices[i] = Index;
|
||||
}
|
||||
}
|
||||
// Add to the CIndices list, if requested.
|
||||
if (CIndices)
|
||||
|
Loading…
x
Reference in New Issue
Block a user