diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 7af26d0e8a73..28e38cc02399 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -539,7 +539,7 @@ static void WriteConstantInt(std::ostream &Out, const Constant *CV, Out << "zeroinitializer"; } else if (const ConstantArray *CA = dyn_cast(CV)) { // As a special case, print the array as a string if it is an array of - // ubytes or an array of sbytes with positive values. + // i8 with ConstantInt values. // const Type *ETy = CA->getType()->getElementType(); if (CA->isString()) { diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp index 78e7b17a6693..e901f3e76e5e 100644 --- a/llvm/lib/VMCore/Instructions.cpp +++ b/llvm/lib/VMCore/Instructions.cpp @@ -1605,10 +1605,9 @@ bool CastInst::isLosslessCast() const { /// changed in order to effect the cast. Essentially, it identifies cases where /// no code gen is necessary for the cast, hence the name no-op cast. For /// example, the following are all no-op casts: -/// # bitcast uint %X, int -/// # bitcast uint* %x, sbyte* -/// # bitcast vector< 2 x int > %x, vector< 4 x short> -/// # ptrtoint uint* %x, uint ; on 32-bit plaforms only +/// # bitcast i32* %x to i8* +/// # bitcast <2 x i32> %x to <4 x i16> +/// # ptrtoint i32* %x to i32 ; on 32-bit plaforms only /// @brief Determine if a cast is a no-op. bool CastInst::isNoopCast(const Type *IntPtrTy) const { switch (getOpcode()) {