diff options
author | Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | 2022-04-22 10:28:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 10:28:06 +0200 |
commit | c4ffc8e2f8508fb951920fc08cf9283927e7e9b8 (patch) | |
tree | b088776c9603a12ca61c370feff763088a9b6cc0 /src/nix/main.cc | |
parent | 35ca5fdf91852e24d677a08dd0d8dfa543150dd3 (diff) | |
parent | 484badfa096db4c001f66eccbe00b70471f2e767 (diff) |
Merge pull request #6218 from pennae/pos-symbol-tables
reduce the size of Attr from 3 pointers to 2 on 64 bit machines
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r-- | src/nix/main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc index 6198681e7..6d0f6ce6e 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -302,7 +302,7 @@ void mainWrapped(int argc, char * * argv) b["arity"] = primOp->arity; b["args"] = primOp->args; b["doc"] = trim(stripIndentation(primOp->doc)); - res[(std::string) builtin.name] = std::move(b); + res[state.symbols[builtin.name]] = std::move(b); } std::cout << res.dump() << "\n"; return; |