[llvm-commits] [llvm] r50900 - /llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp
Duncan Sands
baldrick at free.fr
Fri May 9 05:20:24 PDT 2008
Author: baldrick
Date: Fri May 9 07:20:10 2008
New Revision: 50900
URL: http://llvm.org/viewvc/llvm-project?rev=50900&view=rev
Log:
Fix a type and formatting.
Modified:
llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp
Modified: llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp?rev=50900&r1=50899&r2=50900&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp Fri May 9 07:20:10 2008
@@ -92,7 +92,7 @@
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 @@
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())
More information about the llvm-commits
mailing list