diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
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);  | 

