aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/IPO
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-05-21 00:23:23 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-05-21 00:23:23 +0000
commit5845623148891ab1a41e55358cbe8393814fed14 (patch)
tree53eac4988091f9327909f023472afec50004e385 /lib/Transforms/IPO
parent35e6dc8ccf6956e7c958ea3270b1ff80d44b86f8 (diff)
downloadexternal_llvm-5845623148891ab1a41e55358cbe8393814fed14.zip
external_llvm-5845623148891ab1a41e55358cbe8393814fed14.tar.gz
external_llvm-5845623148891ab1a41e55358cbe8393814fed14.tar.bz2
Add a "brief" comment for CastToCStr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22161 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r--lib/Transforms/IPO/SimplifyLibCalls.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/SimplifyLibCalls.cpp b/lib/Transforms/IPO/SimplifyLibCalls.cpp
index 127d8cc..cb5194f 100644
--- a/lib/Transforms/IPO/SimplifyLibCalls.cpp
+++ b/lib/Transforms/IPO/SimplifyLibCalls.cpp
@@ -1368,6 +1368,7 @@ public:
/// CastToCStr - Return V if it is an sbyte*, otherwise cast it to sbyte*,
/// inserting the cast before IP, and return the cast.
+/// @brief Cast a value to a "C" string.
static Value *CastToCStr(Value *V, Instruction &IP) {
const Type *SBPTy = PointerType::get(Type::SByteTy);
if (V->getType() != SBPTy)