Skip to content

Commit

Permalink
No need for if when we're not doing anything
Browse files Browse the repository at this point in the history
  • Loading branch information
ajor committed May 26, 2019
1 parent 7676530 commit a65ad14
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/ast/semantic_analyser.cpp
Expand Up @@ -388,19 +388,15 @@ void SemanticAnalyser::visit(Call &call)
}
else if (call.func == "kaddr") {
if (check_nargs(call, 1)) {
if (check_arg(call, Type::string, 0, true)) {
;
}
check_arg(call, Type::string, 0, true);
}
call.type = SizedType(Type::integer, 8);
}
else if (call.func == "uaddr")
{
if (check_nargs(call, 1)) {
if (check_arg(call, Type::string, 0, true)) {
if (check_alpha_numeric(call, 0)) {
;
}
check_alpha_numeric(call, 0);
}
}
call.type = SizedType(Type::integer, 8);
Expand Down

0 comments on commit a65ad14

Please sign in to comment.