Skip to content

Commit

Permalink
[clang][Interp][NFC] Return Invalid() when calling invalid function ptrs
Browse files Browse the repository at this point in the history
This is closer to what the current interpreter does.
  • Loading branch information
tbaederr committed Aug 8, 2024
1 parent 42937b6 commit 6673cf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/AST/Interp/Interp.h
Original file line number Diff line number Diff line change
Expand Up @@ -2712,7 +2712,7 @@ inline bool CallPtr(InterpState &S, CodePtr OpPC, uint32_t ArgSize,
}

if (!FuncPtr.isValid())
return false;
return Invalid(S, OpPC);

assert(F);

Expand Down

0 comments on commit 6673cf1

Please sign in to comment.