mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-03 11:24:18 +00:00
De-constify Types in FunctionType::get().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134888 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -216,8 +216,8 @@ Constant *Module::getOrInsertFunction(StringRef Name,
|
||||
va_start(Args, RetTy);
|
||||
|
||||
// Build the list of argument types...
|
||||
std::vector<const Type*> ArgTys;
|
||||
while (const Type *ArgTy = va_arg(Args, const Type*))
|
||||
std::vector<Type*> ArgTys;
|
||||
while (Type *ArgTy = va_arg(Args, Type*))
|
||||
ArgTys.push_back(ArgTy);
|
||||
|
||||
va_end(Args);
|
||||
@ -234,8 +234,8 @@ Constant *Module::getOrInsertFunction(StringRef Name,
|
||||
va_start(Args, RetTy);
|
||||
|
||||
// Build the list of argument types...
|
||||
std::vector<const Type*> ArgTys;
|
||||
while (const Type *ArgTy = va_arg(Args, const Type*))
|
||||
std::vector<Type*> ArgTys;
|
||||
while (Type *ArgTy = va_arg(Args, Type*))
|
||||
ArgTys.push_back(ArgTy);
|
||||
|
||||
va_end(Args);
|
||||
|
Reference in New Issue
Block a user