diff options
author | Robert Lytton <robert@xmos.com> | 2013-11-12 10:11:05 +0000 |
---|---|---|
committer | Robert Lytton <robert@xmos.com> | 2013-11-12 10:11:05 +0000 |
commit | ed835b6fd4281ea00e22b03b86342ea48f57839f (patch) | |
tree | 1ddc80931e0ac2d1b5efe08ded579f0d60e95327 /llvm/lib/Target/XCore/XCoreFrameLowering.cpp | |
parent | eaf6f36e6de425064cdd608538d0a7c9bbf74ee5 (diff) | |
download | bcm5719-llvm-ed835b6fd4281ea00e22b03b86342ea48f57839f.tar.gz bcm5719-llvm-ed835b6fd4281ea00e22b03b86342ea48f57839f.zip |
XCore target: return error for unsupported alignment
llvm-svn: 194463
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreFrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/XCore/XCoreFrameLowering.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/XCore/XCoreFrameLowering.cpp b/llvm/lib/Target/XCore/XCoreFrameLowering.cpp index c60259d13f2..d4075e073bd 100644 --- a/llvm/lib/Target/XCore/XCoreFrameLowering.cpp +++ b/llvm/lib/Target/XCore/XCoreFrameLowering.cpp @@ -93,6 +93,10 @@ void XCoreFrameLowering::emitPrologue(MachineFunction &MF) const { XCoreFunctionInfo *XFI = MF.getInfo<XCoreFunctionInfo>(); DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); + if (MFI->getMaxAlignment() > getStackAlignment()) + report_fatal_error("emitPrologue unsupported alignment: " + + Twine(MFI->getMaxAlignment())); + bool FP = hasFP(MF); const AttributeSet &PAL = MF.getFunction()->getAttributes(); |