Commit d1058e78 authored by David Renshaw's avatar David Renshaw

make getPointerType() const, for good measure

parent 3050b404
...@@ -2423,7 +2423,7 @@ void PointerBuilder::clear() { ...@@ -2423,7 +2423,7 @@ void PointerBuilder::clear() {
memset(pointer, 0, sizeof(WirePointer)); memset(pointer, 0, sizeof(WirePointer));
} }
PointerType PointerBuilder::getPointerType() { PointerType PointerBuilder::getPointerType() const {
if(pointer->isNull()) { if(pointer->isNull()) {
return PointerType::NULL_; return PointerType::NULL_;
} else { } else {
......
...@@ -318,7 +318,7 @@ public: ...@@ -318,7 +318,7 @@ public:
// location. // location.
inline bool isNull() { return getPointerType() == PointerType::NULL_; } inline bool isNull() { return getPointerType() == PointerType::NULL_; }
PointerType getPointerType(); PointerType getPointerType() const;
StructBuilder getStruct(StructSize size, const word* defaultValue); StructBuilder getStruct(StructSize size, const word* defaultValue);
ListBuilder getList(ElementSize elementSize, const word* defaultValue); ListBuilder getList(ElementSize elementSize, const word* defaultValue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment