diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/IPO/StructRetPromotion.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/StructRetPromotion.cpp b/llvm/lib/Transforms/IPO/StructRetPromotion.cpp index 4f4f5748ebd..f857dce669c 100644 --- a/llvm/lib/Transforms/IPO/StructRetPromotion.cpp +++ b/llvm/lib/Transforms/IPO/StructRetPromotion.cpp @@ -339,7 +339,7 @@ bool SRETPromotion::nestedStructType(const StructType *STy) {    unsigned Num = STy->getNumElements();    for (unsigned i = 0; i < Num; i++) {      const Type *Ty = STy->getElementType(i); -    if (!Ty->isFirstClassType() && Ty != Type::VoidTy) +    if (!Ty->isSingleValueType() && Ty != Type::VoidTy)        return true;    }    return false; diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 7102b17d25e..ee80104f108 100644 --- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -643,7 +643,7 @@ void SROA::RewriteBitCastUserOfAlloca(Instruction *BCInst, AllocationInst *AI,        const Type *EltTy =cast<PointerType>(EltPtr->getType())->getElementType();        // If we got down to a scalar, insert a load or store as appropriate. -      if (EltTy->isFirstClassType()) { +      if (EltTy->isSingleValueType()) {          if (isa<MemCpyInst>(MI) || isa<MemMoveInst>(MI)) {            Value *Elt = new LoadInst(SROADest ? OtherElt : EltPtr, "tmp",                                      MI);  | 

