From 3cdc19e38a3c7736ce5706b987f12e64ece8c76f Mon Sep 17 00:00:00 2001 From: jumormt Date: Wed, 24 Jan 2024 12:00:07 +1100 Subject: [PATCH] bytesize default 1 --- svf/include/SVFIR/SVFType.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/svf/include/SVFIR/SVFType.h b/svf/include/SVFIR/SVFType.h index 7f5ae6f2d..45f98c300 100644 --- a/svf/include/SVFIR/SVFType.h +++ b/svf/include/SVFIR/SVFType.h @@ -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) @@ -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) { @@ -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) { } @@ -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) {