diff options
author | Duncan Sands <baldrick@free.fr> | 2008-05-09 12:20:10 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-05-09 12:20:10 +0000 |
commit | 33af59d0f021838c8e601cb300681f71ee31c47a (patch) | |
tree | 54c118ec48a304dcb6b4aca43e7e856b3995f919 | |
parent | 3aa8a6b08aa173edd803d844a1b18ee55f470589 (diff) | |
download | external_llvm-33af59d0f021838c8e601cb300681f71ee31c47a.zip external_llvm-33af59d0f021838c8e601cb300681f71ee31c47a.tar.gz external_llvm-33af59d0f021838c8e601cb300681f71ee31c47a.tar.bz2 |
Fix a type and formatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50900 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/IPO/StructRetPromotion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/StructRetPromotion.cpp b/lib/Transforms/IPO/StructRetPromotion.cpp index 83ceb0d..34d9774 100644 --- a/lib/Transforms/IPO/StructRetPromotion.cpp +++ b/lib/Transforms/IPO/StructRetPromotion.cpp @@ -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()) |