constify the Function parameter to the TTI creation callback and
[oota-llvm.git] / lib / Target / SystemZ / SystemZTargetMachine.cpp
index d011c2b6e67f5f79e717cbab382bc22afcc48c4c..efa3f82cec4cf9a0fd378b3e358c918359e4efd8 100644 (file)
@@ -165,7 +165,7 @@ TargetPassConfig *SystemZTargetMachine::createPassConfig(PassManagerBase &PM) {
 }
 
 TargetIRAnalysis SystemZTargetMachine::getTargetIRAnalysis() {
-  return TargetIRAnalysis([this](Function &F) {
+  return TargetIRAnalysis([this](const Function &F) {
     return TargetTransformInfo(SystemZTTIImpl(this, F));
   });
 }