From 58fdd88751776912e2a2e64901717c482b8a2209 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Mon, 17 Aug 2015 10:58:03 +0000 Subject: Revert "Disable targetdatalayoutcheck" I committed by accident a local hack that should not have made it upstream. Sorry for the noise. llvm-svn: 245212 --- llvm/lib/CodeGen/MachineFunction.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/CodeGen/MachineFunction.cpp') diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 5a797f84843..cf9213b84c4 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -87,6 +87,11 @@ MachineFunction::MachineFunction(const Function *F, const TargetMachine &TM, FunctionNumber = FunctionNum; JumpTableInfo = nullptr; + + assert(TM.isCompatibleDataLayout(getDataLayout()) && + "Can't create a MachineFunction using a Module with a " + "Target-incompatible DataLayout attached\n"); + PSVManager = llvm::make_unique(); } -- cgit v1.2.3