Update memory.cpp
This commit is contained in:
parent
d659fb9779
commit
400cf9e6d9
@ -1,4 +1,5 @@
|
||||
#include "include/memory.h"
|
||||
#include "include/errors.h"
|
||||
#include "include/utils.h"
|
||||
using namespace std;
|
||||
|
||||
@ -49,7 +50,7 @@ Scope& Memory::get_function_scope(void) {
|
||||
if (scope.type == ScopeType::Function) return scope;
|
||||
}
|
||||
|
||||
throw exception();
|
||||
throw InternalError();
|
||||
}
|
||||
|
||||
void Memory::declare(string identifier, Type type, CodePosition pos) {
|
||||
|
Loading…
Reference in New Issue
Block a user