summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-01-27 08:00:42 +0000
committerEric Christopher <echristo@gmail.com>2015-01-27 08:00:42 +0000
commitad6bedb43ed98bb71b310cc08efad7fc8394ecda (patch)
tree9941efae327969333b771c0413254c8e4e3c3b28 /llvm/lib/CodeGen/BasicTargetTransformInfo.cpp
parentf6966505c333aa0d6e8e7088b551d1b5e800f542 (diff)
downloadbcm5719-llvm-ad6bedb43ed98bb71b310cc08efad7fc8394ecda.tar.gz
bcm5719-llvm-ad6bedb43ed98bb71b310cc08efad7fc8394ecda.zip
Fix build failure with pointer vs reference.
NB: Saving files after editing helps. llvm-svn: 227178
Diffstat (limited to 'llvm/lib/CodeGen/BasicTargetTransformInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/BasicTargetTransformInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp b/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp
index 143ccf05345..20b994ee7a1 100644
--- a/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp
+++ b/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp
@@ -225,7 +225,7 @@ void BasicTTI::getUnrollingPreferences(const Function *F, Loop *L,
// until someone finds a case where it matters in practice.
unsigned MaxOps;
- const TargetSubtargetInfo *ST = TM->getSubtargetImpl(F);
+ const TargetSubtargetInfo *ST = TM->getSubtargetImpl(*F);
if (PartialUnrollingThreshold.getNumOccurrences() > 0)
MaxOps = PartialUnrollingThreshold;
else if (ST->getSchedModel().LoopMicroOpBufferSize > 0)
OpenPOWER on IntegriCloud