aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Types.cpp b/Types.cpp
index 96cf3f7e..5a949299 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -1020,13 +1020,10 @@ bool StructType::canLiveOutsideStorage() const
unsigned StructType::getSizeOnStack() const
{
- switch (location())
- {
- case DataLocation::Storage:
+ if (location() == DataLocation::Storage)
return 2; // slot and offset
- default:
+ else
return 1;
- }
}
string StructType::toString(bool _short) const