Push LLVMContexts through the IntegerType APIs.

llvm-svn: 78948
This commit is contained in:
Owen Anderson
2009-08-13 21:58:54 +00:00
parent 41a750271b
commit 55f1c09e31
160 changed files with 1984 additions and 1597 deletions

View File

@@ -152,7 +152,7 @@ bool IPCP::PropagateConstantsIntoArguments(Function &F) {
// callers will be updated to use the value they pass in directly instead of
// using the return value.
bool IPCP::PropagateConstantReturn(Function &F) {
if (F.getReturnType() == Type::VoidTy)
if (F.getReturnType() == Type::getVoidTy(F.getContext()))
return false; // No return value.
// If this function could be overridden later in the link stage, we can't