mirror of
https://github.com/NixOS/nix.git
synced 2025-11-20 09:19:36 +01:00
libexpr: Add and use lambda getter
This commit is contained in:
parent
371fcf91c3
commit
6587e7bcff
11 changed files with 36 additions and 33 deletions
|
|
@ -204,7 +204,7 @@ FrameInfo SampleStack::getFrameInfoFromValueAndPos(const Value & v, std::span<Va
|
|||
/* NOTE: No actual references to garbage collected values are not held in
|
||||
the profiler. */
|
||||
if (v.isLambda())
|
||||
return LambdaFrameInfo{.expr = v.payload.lambda.fun, .callPos = pos};
|
||||
return LambdaFrameInfo{.expr = v.lambda().fun, .callPos = pos};
|
||||
else if (v.isPrimOp()) {
|
||||
return getPrimOpFrameInfo(*v.primOp(), args, pos);
|
||||
} else if (v.isPrimOpApp())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue