summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-07 06:58:05 +0000
committerChris Lattner <sabre@nondot.org>2007-01-07 06:58:05 +0000
commit92141968cbdd1164e1dc9f4d730173957eeca8a2 (patch)
tree7e053854b4feb8ffda806fa6607b154f066e4087 /lib/Transforms
parentf3ccb692f28788959495a5b0b5b20c8f076b874a (diff)
downloadllvm-92141968cbdd1164e1dc9f4d730173957eeca8a2.tar.gz
llvm-92141968cbdd1164e1dc9f4d730173957eeca8a2.tar.bz2
llvm-92141968cbdd1164e1dc9f4d730173957eeca8a2.tar.xz
relax some types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp5
-rw-r--r--lib/Transforms/Scalar/LowerGC.cpp2
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 66fbe1482d..ccc4a9cc86 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -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;
diff --git a/lib/Transforms/Scalar/LowerGC.cpp b/lib/Transforms/Scalar/LowerGC.cpp
index e0d6933821..fa06bd0dfc 100644
--- a/lib/Transforms/Scalar/LowerGC.cpp
+++ b/lib/Transforms/Scalar/LowerGC.cpp
@@ -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.