forked from OSchip/llvm-project
parent
ece8582ca2
commit
3d926cbf79
|
@ -573,7 +573,8 @@ void CodeGenFunction::EmitStoreThroughExtVectorComponentLValue(RValue Src,
|
|||
ExtMask.push_back(llvm::UndefValue::get(llvm::Type::Int32Ty));
|
||||
llvm::Value *ExtMaskV = llvm::ConstantVector::get(&ExtMask[0],
|
||||
ExtMask.size());
|
||||
llvm::Value *ExtSrcVal = Builder.CreateShuffleVector(SrcVal,
|
||||
llvm::Value *ExtSrcVal =
|
||||
Builder.CreateShuffleVector(SrcVal,
|
||||
llvm::UndefValue::get(SrcVal->getType()),
|
||||
ExtMaskV, "tmp");
|
||||
// build identity
|
||||
|
@ -879,7 +880,8 @@ LValue CodeGenFunction::EmitLValueForBitfield(llvm::Value* BaseValue,
|
|||
unsigned idx = CGM.getTypes().getLLVMFieldNo(Field);
|
||||
// FIXME: CodeGenTypes should expose a method to get the appropriate
|
||||
// type for FieldTy (the appropriate type is ABI-dependent).
|
||||
const llvm::Type *FieldTy = CGM.getTypes().ConvertTypeForMem(Field->getType());
|
||||
const llvm::Type *FieldTy =
|
||||
CGM.getTypes().ConvertTypeForMem(Field->getType());
|
||||
const llvm::PointerType *BaseTy =
|
||||
cast<llvm::PointerType>(BaseValue->getType());
|
||||
unsigned AS = BaseTy->getAddressSpace();
|
||||
|
|
Loading…
Reference in New Issue