Skip to content

Commit a194d51

Browse files
[ExecutionEngine] Fix a warning
This patch fixes: llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp:1578:3: error: 'std::unique_lock' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported]
1 parent 3a4d506 commit a194d51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ TEST_F(CoreAPIsStandardTest, TestLookupWithThreadedMaterialization) {
15751575
EXPECT_EQ(FooLookupResult.getFlags(), FooSym.getFlags())
15761576
<< "lookup returned incorrect flags";
15771577

1578-
std::unique_lock Lock(WorkThreadsMutex);
1578+
std::unique_lock<std::mutex> Lock(WorkThreadsMutex);
15791579
// This works because every child thread that is allowed to use WorkThreads
15801580
// must either be in WorkThreads or its parent must be in WorkThreads.
15811581
while (!WorkThreads.empty()) {

0 commit comments

Comments
 (0)