projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make DataLayout Non-Optional in the Module
[oota-llvm.git]
/
lib
/
Analysis
/
TargetTransformInfo.cpp
diff --git
a/lib/Analysis/TargetTransformInfo.cpp
b/lib/Analysis/TargetTransformInfo.cpp
index 7ff29b028aec5ed85410a41058f3b2ad09e509e2..4d336363c5f503090e18a633f3ec99080aee9144 100644
(file)
--- a/
lib/Analysis/TargetTransformInfo.cpp
+++ b/
lib/Analysis/TargetTransformInfo.cpp
@@
-277,7
+277,7
@@
TargetIRAnalysis::Result TargetIRAnalysis::run(Function &F) {
char TargetIRAnalysis::PassID;
TargetIRAnalysis::Result TargetIRAnalysis::getDefaultTTI(Function &F) {
- return Result(F.getParent()->getDataLayout());
+ return Result(
&
F.getParent()->getDataLayout());
}
// Register the basic pass.