diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-05-30 00:25:03 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-05-30 00:25:03 +0800 |
| commit | 56d68765016fc7aa68fe7b522de5e84c7a12123a (patch) | |
| tree | ba9828637913aa40bc1b1509c5127be9bded3a6e /TypeManager.cc | |
| parent | f15a071f6d599d2a21083dfb041b18db8d482949 (diff) | |
global variable, constant support
Diffstat (limited to 'TypeManager.cc')
| -rw-r--r-- | TypeManager.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/TypeManager.cc b/TypeManager.cc index 40060ac..3ce68a1 100644 --- a/TypeManager.cc +++ b/TypeManager.cc @@ -4,8 +4,9 @@ namespace pcc { TypeManager::TypeManager() - : builtins_{std::make_shared<BooleanType>(), std::make_shared<CharType>(), - std::make_shared<IntegerType>(), std::make_shared<RealType>()} { + : builtins_{std::make_shared<VoidType>(), std::make_shared<BooleanType>(), + std::make_shared<CharType>(), std::make_shared<IntegerType>(), + std::make_shared<RealType>()} { PointerDifferenceType_ = GetBuiltinType(BuiltinType::INTEGER); PointerIndexType_ = GetBuiltinType(BuiltinType::INTEGER); builtins_.push_back( |
