Commit c1a98b34 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Checking keyword_names isn't safe since it doesn't always get passed

parent 1a8566b3
......@@ -1531,7 +1531,7 @@ extern "C" Box* callattr(Box* obj, std::string* attr, bool clsonly, ArgPassSpec
assert(attr);
int num_orig_args = 4 + std::min(4, npassed_args);
if (keyword_names)
if (argspec.num_keywords)
num_orig_args++;
std::unique_ptr<Rewriter> rewriter(Rewriter::createRewriter(
__builtin_extract_return_addr(__builtin_return_address(0)), num_orig_args, 2, "callattr"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment