aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-01 19:24:26 +0800
committerGitHub <noreply@github.com>2018-10-01 19:24:26 +0800
commitdb4f78028345066798f003558df25c25a7d18e31 (patch)
treedaa4f92c45f4a22e66619bff6e88dc76eddbfb64 /libsolidity/codegen
parent9589eb1bb6a2179a0c02a7ed1502937e56fa019b (diff)
parent3321000f67add785383adb4ec544aad121552751 (diff)
downloaddexon-solidity-db4f78028345066798f003558df25c25a7d18e31.tar
dexon-solidity-db4f78028345066798f003558df25c25a7d18e31.tar.gz
dexon-solidity-db4f78028345066798f003558df25c25a7d18e31.tar.bz2
dexon-solidity-db4f78028345066798f003558df25c25a7d18e31.tar.lz
dexon-solidity-db4f78028345066798f003558df25c25a7d18e31.tar.xz
dexon-solidity-db4f78028345066798f003558df25c25a7d18e31.tar.zst
dexon-solidity-db4f78028345066798f003558df25c25a7d18e31.zip
Merge pull request #4962 from anurag-git/anurag_issue_3667-1
Removed default case from "ExpressionCompiler::visit(FunctionCall...)".
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r--libsolidity/codegen/ArrayUtils.cpp2
-rw-r--r--libsolidity/codegen/CompilerUtils.cpp9
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp2
3 files changed, 0 insertions, 13 deletions
diff --git a/libsolidity/codegen/ArrayUtils.cpp b/libsolidity/codegen/ArrayUtils.cpp
index 2b77db8f..d33f749c 100644
--- a/libsolidity/codegen/ArrayUtils.cpp
+++ b/libsolidity/codegen/ArrayUtils.cpp
@@ -1108,8 +1108,6 @@ void ArrayUtils::accessIndex(ArrayType const& _arrayType, bool _doBoundsCheck) c
m_context << endTag;
break;
}
- default:
- solAssert(false, "");
}
}
diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp
index e6ad6d9c..2bdf88e3 100644
--- a/libsolidity/codegen/CompilerUtils.cpp
+++ b/libsolidity/codegen/CompilerUtils.cpp
@@ -895,15 +895,6 @@ void CompilerUtils::convertType(
typeOnStack.location() == DataLocation::CallData,
"Invalid conversion to calldata type.");
break;
- default:
- solAssert(
- false,
- "Invalid type conversion " +
- _typeOnStack.toString(false) +
- " to " +
- _targetType.toString(false) +
- " requested."
- );
}
break;
}
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp
index 587cf34a..27440289 100644
--- a/libsolidity/codegen/ExpressionCompiler.cpp
+++ b/libsolidity/codegen/ExpressionCompiler.cpp
@@ -1098,8 +1098,6 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
case FunctionType::Kind::GasLeft:
m_context << Instruction::GAS;
break;
- default:
- solAssert(false, "Invalid function type.");
}
}
return false;