mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-22 10:33:23 +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");
|
||||
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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user