summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/PassManagerTest.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2016-08-19 09:53:10 +0000
committerChandler Carruth <chandlerc@gmail.com>2016-08-19 09:53:10 +0000
commit5dbc90a8f184ae4abd8a9ef55c5be7cf884bd837 (patch)
tree6b5d5fcee91202d26ee75856139ce0d685da4735 /llvm/unittests/IR/PassManagerTest.cpp
parentdb1759ace178e6a0f69bebaf4e06dd043c130a42 (diff)
downloadbcm5719-llvm-5dbc90a8f184ae4abd8a9ef55c5be7cf884bd837.tar.gz
bcm5719-llvm-5dbc90a8f184ae4abd8a9ef55c5be7cf884bd837.zip
[PM] Fix a compile error with GCC. NFC.
llvm-svn: 279228
Diffstat (limited to 'llvm/unittests/IR/PassManagerTest.cpp')
-rw-r--r--llvm/unittests/IR/PassManagerTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/IR/PassManagerTest.cpp b/llvm/unittests/IR/PassManagerTest.cpp
index 8031c85a4cf..47fb8b70f1b 100644
--- a/llvm/unittests/IR/PassManagerTest.cpp
+++ b/llvm/unittests/IR/PassManagerTest.cpp
@@ -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)
OpenPOWER on IntegriCloud