1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Fix a type and formatting.

llvm-svn: 50900
This commit is contained in:
Duncan Sands 2008-05-09 12:20:10 +00:00
parent ac930296dd
commit dd33da4795

View File

@ -92,7 +92,7 @@ bool SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
assert (F->getReturnType() == Type::VoidTy && "Invalid function return type");
Function::arg_iterator AI = F->arg_begin();
const llvm::PointerType *FArgType = dyn_cast<PointerType>(AI->getType());
assert (FArgType && "Invalid sret paramater type");
assert (FArgType && "Invalid sret parameter type");
const llvm::StructType *STy =
dyn_cast<StructType>(FArgType->getElementType());
assert (STy && "Invalid sret parameter element type");
@ -149,7 +149,7 @@ bool SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
return true;
}
// Check if it is ok to perform this promotion.
// Check if it is ok to perform this promotion.
bool SRETPromotion::isSafeToUpdateAllCallers(Function *F) {
if (F->use_empty())