summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Target.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/Target.cpp')
-rw-r--r--llvm/lib/Target/Target.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/Target.cpp b/llvm/lib/Target/Target.cpp
index ee5178184fb..627786dfb49 100644
--- a/llvm/lib/Target/Target.cpp
+++ b/llvm/lib/Target/Target.cpp
@@ -55,6 +55,8 @@ LLVMTargetDataRef LLVMCreateTargetData(const char *StringRep) {
}
void LLVMAddTargetData(LLVMTargetDataRef TD, LLVMPassManagerRef PM) {
+ // The DataLayoutPass must now be in sync with the module. Unfortunatelly we
+ // cannot enforce that from the C api.
unwrap(PM)->add(new DataLayoutPass(*unwrap(TD)));
}
OpenPOWER on IntegriCloud