Fix a type and formatting.
authorDuncan Sands <baldrick@free.fr>
Fri, 9 May 2008 12:20:10 +0000 (12:20 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 9 May 2008 12:20:10 +0000 (12:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50900 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/StructRetPromotion.cpp

index 83ceb0dd0ebfe00b30e40190c6eb2700ffe16d64..34d977452c6d0e10c5b5e505800175361eb1680f 100644 (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())