[llvm] r279228 - [PM] Fix a compile error with GCC. NFC.
Chandler Carruth via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 19 02:53:10 PDT 2016
Author: chandlerc
Date: Fri Aug 19 04:53:10 2016
New Revision: 279228
URL: http://llvm.org/viewvc/llvm-project?rev=279228&view=rev
Log:
[PM] Fix a compile error with GCC. NFC.
Modified:
llvm/trunk/unittests/IR/PassManagerTest.cpp
Modified: llvm/trunk/unittests/IR/PassManagerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/PassManagerTest.cpp?rev=279228&r1=279227&r2=279228&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/PassManagerTest.cpp (original)
+++ llvm/trunk/unittests/IR/PassManagerTest.cpp Fri Aug 19 04:53:10 2016
@@ -378,8 +378,8 @@ TEST_F(PassManagerTest, CustomizedPassMa
// 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)
More information about the llvm-commits
mailing list