aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-03 05:48:41 +0000
committerChris Lattner <sabre@nondot.org>2006-05-03 05:48:41 +0000
commit5c488182daaf8e11789bd0a16528900ae4042dc2 (patch)
tree9f5899b6670a7be797077f5fae71828f95da16d6
parent67977ad19cf961f61c35006d9cc5695c4dde6655 (diff)
Fix a bug in Owen's checkin that broke the CBE on all non sparc v9 platforms.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28081 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/CBackend/CTargetMachine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CTargetMachine.h b/lib/Target/CBackend/CTargetMachine.h
index 271a2bf653..98ea0cb267 100644
--- a/lib/Target/CBackend/CTargetMachine.h
+++ b/lib/Target/CBackend/CTargetMachine.h
@@ -23,7 +23,7 @@ struct CTargetMachine : public TargetMachine {
CTargetMachine(const Module &M, const std::string &FS)
: TargetMachine("CBackend", M),
- DataLayout("CBackend") {}
+ DataLayout("CBackend", &M) {}
// This is the only thing that actually does anything here.
virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,