summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-08-17 10:58:03 +0000
committerTobias Grosser <tobias@grosser.es>2015-08-17 10:58:03 +0000
commit58fdd88751776912e2a2e64901717c482b8a2209 (patch)
tree9d81f2e45f978a8d15640198e514817853e915ba /llvm/lib
parentc5bcf246d134c4af9bd738c3629ce12504bd6db8 (diff)
downloadbcm5719-llvm-58fdd88751776912e2a2e64901717c482b8a2209.tar.gz
bcm5719-llvm-58fdd88751776912e2a2e64901717c482b8a2209.zip
Revert "Disable targetdatalayoutcheck"
I committed by accident a local hack that should not have made it upstream. Sorry for the noise. llvm-svn: 245212
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp5
1 files changed, 5 insertions, 0 deletions
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<PseudoSourceValueManager>();
}
OpenPOWER on IntegriCloud