]> sourceware.org Git - systemtap.git/commitdiff
elaborate: mark functioncall type errors on the argument
authorJosh Stone <jistone@redhat.com>
Tue, 6 May 2014 23:51:22 +0000 (16:51 -0700)
committerJosh Stone <jistone@redhat.com>
Tue, 6 May 2014 23:51:22 +0000 (16:51 -0700)
elaborate.cxx

index 03ec0ab4a4fe276c943f1cd2e20ff6e76fabafd7..7579dad9eb80f1df1f9f24d55e43e654c19c389a 100644 (file)
@@ -4872,13 +4872,13 @@ typeresolution_info::visit_functioncall (functioncall* e)
           resolved (ee->tok, ft, e->referent->formal_args[i], i);
         }
       if (at == pe_stats)
-        invalid (e->tok, at);
+        invalid (ee->tok, at);
       if (ft == pe_stats)
         invalid (fe_tok, ft);
       if (at != pe_unknown && ft != pe_unknown && ft != at)
         mismatch (ee->tok, ee->type, e->referent->formal_args[i], i);
       if (at == pe_unknown)
-        unresolved (e->tok);
+        unresolved (ee->tok);
     }
 }
 
This page took 0.038335 seconds and 5 git commands to generate.