aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-09-03 22:39:37 +0800
committerGitHub <noreply@github.com>2018-09-03 22:39:37 +0800
commit0b9cc80bedb2f05e19ac6c66906d8ac3d77bc01b (patch)
tree2833ab7b3c7513647c0476d0e5d33dc11fcd6951
parent410d288dfc2e08c42df58c7e01ad5c332ce92727 (diff)
parent8497dcd721ff0a113374c0c1e1778d44265398a6 (diff)
downloaddexon-solidity-0b9cc80bedb2f05e19ac6c66906d8ac3d77bc01b.tar.gz
dexon-solidity-0b9cc80bedb2f05e19ac6c66906d8ac3d77bc01b.tar.zst
dexon-solidity-0b9cc80bedb2f05e19ac6c66906d8ac3d77bc01b.zip
Merge pull request #4850 from anurag-git/anurag_issue_3667
Fix for Ensure that missed enum values are tested for in Types #3667
-rw-r--r--libsolidity/ast/Types.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp
index b1cd15b4..a725618e 100644
--- a/libsolidity/ast/Types.cpp
+++ b/libsolidity/ast/Types.cpp
@@ -1501,8 +1501,6 @@ TypePointer ReferenceType::unaryOperatorResult(Token::Value _operator) const
return make_shared<TupleType>();
case DataLocation::Storage:
return m_isPointer ? TypePointer() : make_shared<TupleType>();
- default:
- solAssert(false, "");
}
return TypePointer();
}
@@ -1548,8 +1546,6 @@ string ReferenceType::identifierLocationSuffix() const
case DataLocation::CallData:
id += "_calldata";
break;
- default:
- solAssert(false, "Unknown location returned by location()");
}
if (isPointer())
id += "_ptr";
@@ -2556,7 +2552,6 @@ string FunctionType::richIdentifier() const
case Kind::ABIEncodeWithSelector: id += "abiencodewithselector"; break;
case Kind::ABIEncodeWithSignature: id += "abiencodewithsignature"; break;
case Kind::ABIDecode: id += "abidecode"; break;
- default: solAssert(false, "Unknown function location."); break;
}
id += "_" + stateMutabilityToString(m_stateMutability);
id += identifierList(m_parameterTypes) + "returns" + identifierList(m_returnParameterTypes);
@@ -3257,8 +3252,6 @@ string MagicType::richIdentifier() const
return "t_magic_transaction";
case Kind::ABI:
return "t_magic_abi";
- default:
- solAssert(false, "Unknown kind of magic");
}
return "";
}