1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Fix indentation.

llvm-svn: 124375
This commit is contained in:
Jay Foad 2011-01-27 14:44:55 +00:00
parent 8258d2da8c
commit 284c5bc9bd

View File

@ -591,10 +591,10 @@ ConstantVector::ConstantVector(const VectorType *T,
OperandTraits<ConstantVector>::op_end(this) - V.size(),
V.size()) {
Use *OL = OperandList;
for (std::vector<Constant*>::const_iterator I = V.begin(), E = V.end();
I != E; ++I, ++OL) {
Constant *C = *I;
assert(C->getType() == T->getElementType() &&
for (std::vector<Constant*>::const_iterator I = V.begin(), E = V.end();
I != E; ++I, ++OL) {
Constant *C = *I;
assert(C->getType() == T->getElementType() &&
"Initializer for vector element doesn't match vector element type!");
*OL = C;
}
@ -603,10 +603,10 @@ ConstantVector::ConstantVector(const VectorType *T,
// ConstantVector accessors.
Constant* ConstantVector::get(const VectorType* T,
const std::vector<Constant*>& V) {
assert(!V.empty() && "Vectors can't be empty");
LLVMContext &Context = T->getContext();
LLVMContextImpl *pImpl = Context.pImpl;
assert(!V.empty() && "Vectors can't be empty");
LLVMContext &Context = T->getContext();
LLVMContextImpl *pImpl = Context.pImpl;
// If this is an all-undef or alll-zero vector, return a
// ConstantAggregateZero or UndefValue.
Constant *C = V[0];
@ -1240,7 +1240,7 @@ Constant *ConstantExpr::getFPCast(Constant *C, const Type *Ty) {
if (SrcBits == DstBits)
return C; // Avoid a useless cast
Instruction::CastOps opcode =
(SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt);
(SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt);
return getCast(opcode, C, Ty);
}