mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
relax some types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32980 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f3ccb692f2
commit
92141968cb
@ -3552,8 +3552,7 @@ Instruction *InstCombiner::MatchBSwap(BinaryOperator &I) {
|
||||
FnName = "llvm.bswap.i64";
|
||||
else
|
||||
assert(0 && "Unknown integer type!");
|
||||
Function *F = M->getOrInsertFunction(FnName, I.getType(), I.getType(), NULL);
|
||||
|
||||
Constant *F = M->getOrInsertFunction(FnName, I.getType(), I.getType(), NULL);
|
||||
return new CallInst(F, V);
|
||||
}
|
||||
|
||||
@ -6953,7 +6952,7 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
|
||||
Name = "llvm.memcpy.i32";
|
||||
else
|
||||
Name = "llvm.memcpy.i64";
|
||||
Function *MemCpy = M->getOrInsertFunction(Name,
|
||||
Constant *MemCpy = M->getOrInsertFunction(Name,
|
||||
CI.getCalledFunction()->getFunctionType());
|
||||
CI.setOperand(0, MemCpy);
|
||||
Changed = true;
|
||||
|
@ -37,7 +37,7 @@ namespace {
|
||||
|
||||
/// GCRead/GCWrite - These are the functions provided by the garbage
|
||||
/// collector for read/write barriers.
|
||||
Function *GCRead, *GCWrite;
|
||||
Constant *GCRead, *GCWrite;
|
||||
|
||||
/// RootChain - This is the global linked-list that contains the chain of GC
|
||||
/// roots.
|
||||
|
Loading…
Reference in New Issue
Block a user