Skip to content

Commit

Permalink
Moved an expression about to work arround MSVC bug
Browse files Browse the repository at this point in the history
aka fixed the code to be compliant with MSVC's "unique" take on the C++
standard.
  • Loading branch information
Hugobros3 committed May 6, 2022
1 parent fb77d69 commit 6fa217b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/thorin/continuation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@ bool visit_uses(Continuation* cont, std::function<bool(Continuation*)> func, boo
bool visit_capturing_intrinsics(Continuation* cont, std::function<bool(Continuation*)> func, bool include_globals) {
return visit_uses(cont, [&] (auto continuation) {
if (!continuation->has_body()) return false;
auto body = continuation->body();
if (auto callee = body->callee()->template isa_nom<Continuation>())
auto callee = continuation->body()->callee()->template isa_nom<Continuation>();
if (callee)
return callee->is_intrinsic() && func(callee);
return false;
}, include_globals);
Expand Down

0 comments on commit 6fa217b

Please sign in to comment.