// A scalar source can be splatted to a vector of the same element type
if (isa<llvm::VectorType>(DstTy) && !isa<VectorType>(SrcType)) {
- const llvm::VectorType *VT = cast<llvm::VectorType>(DstTy);
- assert((VT->getElementType() == Src->getType()) &&
+ assert((cast<llvm::VectorType>(DstTy)->getElementType()
+ == Src->getType()) &&
"Vector element type must match scalar type to splat.");
unsigned NumElements = DstType->getAsVectorType()->getNumElements();
llvm::SmallVector<llvm::Constant*, 16> Elements;
}
isClassMessage = true;
- } else if (const PredefinedExpr *PDE =
- dyn_cast<PredefinedExpr>(E->getReceiver())) {
- assert(PDE->getIdentType() == PredefinedExpr::ObjCSuper);
+ } else if (isa<PredefinedExpr>(E->getReceiver())) {
+ assert(cast<PredefinedExpr>(E->getReceiver())->getIdentType() ==
+ PredefinedExpr::ObjCSuper);
isSuperMessage = true;
Receiver = LoadObjCSelf();
} else {
TargetInfo::ConstraintInfo Info;
bool result = Target.validateOutputConstraint(OutputConstraint.c_str(),
Info);
- assert(result && "Failed to parse output constraint");
+ assert(result && "Failed to parse output constraint"); result=result;
// Simplify the output constraint.
OutputConstraint = SimplifyConstraint(OutputConstraint.c_str() + 1, Target);
TargetInfo::ConstraintInfo Info;
bool result = Target.validateInputConstraint(InputConstraint.c_str(),
- NumConstraints,
- Info);
- assert(result && "Failed to parse input constraint");
+ NumConstraints, Info);
+ assert(result && "Failed to parse input constraint"); result=result;
if (i != 0 || S.getNumOutputs() > 0)
Constraints += ',';
}
} else {
assert(0 && "FIXME: Unknown tag decl kind!");
+ abort();
}
// Refine our Opaque type to ResultType. This can invalidate ResultType, so
llvm::APSInt FieldSize(32);
bool isBitField =
BitWidth->isIntegerConstantExpr(FieldSize, CGT.getContext());
- assert (isBitField && "Invalid BitField size expression");
- uint64_t BitFieldSize = FieldSize.getZExtValue();
+ assert(isBitField && "Invalid BitField size expression");
+ isBitField=isBitField; // silence warning.
+ uint64_t BitFieldSize = FieldSize.getZExtValue();
// Bitfield field info is different from other field info;
// it actually ignores the underlying LLVM struct because