Skip to content

Commit

Permalink
bytesize default 1
Browse files Browse the repository at this point in the history
  • Loading branch information
jumormt committed Jan 24, 2024
1 parent 6ffb132 commit 3cdc19e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions svf/include/SVFIR/SVFType.h
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ class SVFFunctionType : public SVFType

public:
SVFFunctionType(const SVFType* rt)
: SVFType(false, SVFFunctionTy, 0), retTy(rt)
: SVFType(false, SVFFunctionTy, 1), retTy(rt)
{
}
static inline bool classof(const SVFType* node)
Expand All @@ -437,7 +437,7 @@ class SVFStructType : public SVFType
std::string name;

public:
SVFStructType(u32_t byteSize) : SVFType(false, SVFStructTy, byteSize) {}
SVFStructType(u32_t byteSize = 1) : SVFType(false, SVFStructTy, byteSize) {}

static inline bool classof(const SVFType* node)
{
Expand Down Expand Up @@ -470,7 +470,7 @@ class SVFArrayType : public SVFType
const SVFType* typeOfElement; /// For printing & debugging

public:
SVFArrayType(u32_t byteSize)
SVFArrayType(u32_t byteSize = 1)
: SVFType(false, SVFArrayTy, byteSize), numOfElement(0), typeOfElement(nullptr)
{
}
Expand Down Expand Up @@ -509,7 +509,7 @@ class SVFOtherType : public SVFType
std::string repr; /// Field representation for printing

public:
SVFOtherType(u32_t byteSize, bool isSingleValueTy) : SVFType(isSingleValueTy, SVFOtherTy, byteSize) {}
SVFOtherType(bool isSingleValueTy, u32_t byteSize = 1) : SVFType(isSingleValueTy, SVFOtherTy, byteSize) {}

static inline bool classof(const SVFType* node)
{
Expand Down

0 comments on commit 3cdc19e

Please sign in to comment.