summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86CallLowering.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2017-02-28 15:00:27 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2017-02-28 15:00:27 +0000
commit983c9b98e93691559647d5ba13c109b5f846ff45 (patch)
treee4cde54997774aaaf9b88465c040ef7b07fb6f5e /llvm/lib/Target/X86/X86CallLowering.cpp
parent20a209e453b557525ea0ab27c47717639c889fa2 (diff)
downloadbcm5719-llvm-983c9b98e93691559647d5ba13c109b5f846ff45.tar.gz
bcm5719-llvm-983c9b98e93691559647d5ba13c109b5f846ff45.zip
Revert r296474 - [globalisel] Change LLT constructor string into an LLT subclass that knows how to generate it.
There's a circular dependency that's only revealed when LLVM_ENABLE_MODULES=1. llvm-svn: 296478
Diffstat (limited to 'llvm/lib/Target/X86/X86CallLowering.cpp')
-rw-r--r--llvm/lib/Target/X86/X86CallLowering.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86CallLowering.cpp b/llvm/lib/Target/X86/X86CallLowering.cpp
index cb556a3f856..39c7e514791 100644
--- a/llvm/lib/Target/X86/X86CallLowering.cpp
+++ b/llvm/lib/Target/X86/X86CallLowering.cpp
@@ -58,9 +58,8 @@ void X86CallLowering::splitToValueTypes(const ArgInfo &OrigArg,
Type *PartTy = PartVT.getTypeForEVT(Context);
for (unsigned i = 0; i < NumParts; ++i) {
- ArgInfo Info =
- ArgInfo{MRI.createGenericVirtualRegister(getLLTForType(*PartTy, DL)),
- PartTy, OrigArg.Flags};
+ ArgInfo Info = ArgInfo{MRI.createGenericVirtualRegister(LLT{*PartTy, DL}),
+ PartTy, OrigArg.Flags};
SplitArgs.push_back(Info);
BitOffsets.push_back(PartVT.getSizeInBits() * i);
SplitRegs.push_back(Info.Reg);
OpenPOWER on IntegriCloud