[PM] Fix a compile error with GCC. NFC.

llvm-svn: 279228
This commit is contained in:
Chandler Carruth 2016-08-19 09:53:10 +00:00
parent db1759ace1
commit 5dbc90a8f1

View File

@ -378,8 +378,8 @@ TEST_F(PassManagerTest, CustomizedPassManagerArgs) {
// Add an instance of the customized pass that just accumulates the input
// after it is round-tripped through the analysis.
int Result = 0;
PM.addPass(CustomizedPass::CustomizedPass(
[](CustomizedAnalysis::Result &R, int &O) { O += R.I; }));
PM.addPass(
CustomizedPass([](CustomizedAnalysis::Result &R, int &O) { O += R.I; }));
// Run this over every function with the input of 42.
for (Function &F : *M)