mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-03 18:37:56 +00:00
Fix a type and formatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50900 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3aa8a6b08a
commit
33af59d0f0
@ -92,7 +92,7 @@ bool SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
|
|||||||
assert (F->getReturnType() == Type::VoidTy && "Invalid function return type");
|
assert (F->getReturnType() == Type::VoidTy && "Invalid function return type");
|
||||||
Function::arg_iterator AI = F->arg_begin();
|
Function::arg_iterator AI = F->arg_begin();
|
||||||
const llvm::PointerType *FArgType = dyn_cast<PointerType>(AI->getType());
|
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 =
|
const llvm::StructType *STy =
|
||||||
dyn_cast<StructType>(FArgType->getElementType());
|
dyn_cast<StructType>(FArgType->getElementType());
|
||||||
assert (STy && "Invalid sret parameter element type");
|
assert (STy && "Invalid sret parameter element type");
|
||||||
@ -149,7 +149,7 @@ bool SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
|
|||||||
return true;
|
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) {
|
bool SRETPromotion::isSafeToUpdateAllCallers(Function *F) {
|
||||||
|
|
||||||
if (F->use_empty())
|
if (F->use_empty())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user