aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis/ConstantEvaluator.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-05 21:10:30 +0800
committerGitHub <noreply@github.com>2018-12-05 21:10:30 +0800
commit57eb68a8df84e8d746214f0faac74a16dab65881 (patch)
tree6b1a517f08a071fc77603b5c3ee78f138f8c3f1b /libsolidity/analysis/ConstantEvaluator.cpp
parent1e6c368bbaea34ca172478d54e7160844eba8172 (diff)
parentc38fb534396eee62701cd08edfffbdea3bac337f (diff)
downloaddexon-solidity-57eb68a8df84e8d746214f0faac74a16dab65881.tar
dexon-solidity-57eb68a8df84e8d746214f0faac74a16dab65881.tar.gz
dexon-solidity-57eb68a8df84e8d746214f0faac74a16dab65881.tar.bz2
dexon-solidity-57eb68a8df84e8d746214f0faac74a16dab65881.tar.lz
dexon-solidity-57eb68a8df84e8d746214f0faac74a16dab65881.tar.xz
dexon-solidity-57eb68a8df84e8d746214f0faac74a16dab65881.tar.zst
dexon-solidity-57eb68a8df84e8d746214f0faac74a16dab65881.zip
Merge pull request #4098 from ethereum/typedResults
Introduce Result<T> for type checker functions
Diffstat (limited to 'libsolidity/analysis/ConstantEvaluator.cpp')
-rw-r--r--libsolidity/analysis/ConstantEvaluator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/ConstantEvaluator.cpp b/libsolidity/analysis/ConstantEvaluator.cpp
index 9d041ce5..26d9584b 100644
--- a/libsolidity/analysis/ConstantEvaluator.cpp
+++ b/libsolidity/analysis/ConstantEvaluator.cpp
@@ -41,7 +41,7 @@ void ConstantEvaluator::endVisit(BinaryOperation const& _operation)
auto right = type(_operation.rightExpression());
if (left && right)
{
- auto commonType = left->binaryOperatorResult(_operation.getOperator(), right);
+ TypePointer commonType = left->binaryOperatorResult(_operation.getOperator(), right);
if (!commonType)
m_errorReporter.fatalTypeError(
_operation.location(),