Skip to content

Commit

Permalink
fix: expected does not support class template argument deduction
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed May 29, 2024
1 parent 4805772 commit da44b16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/Lib/ExecutionContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ results()
// Each Bitcode can have multiple Infos
for(auto& bitcode : bitcodes)
{
Expected infos = readBitcode(bitcode);
Expected<std::vector<std::unique_ptr<Info>>> infos =
readBitcode(bitcode);
if (infos.has_value())
{
std::move(
Expand All @@ -179,7 +180,7 @@ results()
report::error("Failed to read bitcode: {}", infos.error());
}
}
Expected merged = mergeInfos(Infos);
Expected<std::unique_ptr<Info>> merged = mergeInfos(Infos);
std::unique_ptr<Info> I = std::move(merged.value());
MRDOCS_ASSERT(I);
MRDOCS_ASSERT(id == I->id);
Expand Down

0 comments on commit da44b16

Please sign in to comment.