default address space of PointerType 0 => 1

This commit is contained in:
Yan Da
2022-06-05 15:09:41 +08:00
parent d5eca56cf3
commit a4a2c72173

View File

@@ -30,7 +30,8 @@ Type PointerType::parse(AsmParser &parser) {
if (parser.parseGreater())
return Type();
return PointerType::get(pointeeType, 0);
// TODO: also print address space?
return PointerType::get(pointeeType, 1);
}
void PointerType::print(AsmPrinter &printer) const {