Gep indices must be of int, uint, long or ulong type.
llvm-svn: 17313
This commit is contained in:
parent
8eb04a7713
commit
23e565484a
|
@ -1249,7 +1249,7 @@ Constant *ConstantExpr::getSizeOf(const Type *Ty) {
|
|||
return getCast(
|
||||
getGetElementPtr(
|
||||
getNullValue(PointerType::get(Ty)),
|
||||
std::vector<Constant*>(1, ConstantInt::get(Type::UByteTy, 1))),
|
||||
std::vector<Constant*>(1, ConstantInt::get(Type::UIntTy, 1))),
|
||||
Type::UIntTy);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue