Revert the revert 253497 and 253539 - These commits aren't the cause of the clang...
[oota-llvm.git] / lib / CodeGen / LLVMTargetMachine.cpp
index 37299eb664cf8c458bcfa0ae4db81b8f205b6dd7..5b8c8258b285a5bc77be493e32500003bf7b9468 100644 (file)
@@ -82,7 +82,7 @@ LLVMTargetMachine::LLVMTargetMachine(const Target &T,
 }
 
 TargetIRAnalysis LLVMTargetMachine::getTargetIRAnalysis() {
-  return TargetIRAnalysis([this](Function &F) {
+  return TargetIRAnalysis([this](const Function &F) {
     return TargetTransformInfo(BasicTTIImpl(this, F));
   });
 }