aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-03-22 20:21:15 +0800
committerchriseth <chris@ethereum.org>2017-04-25 22:49:03 +0800
commitc4a0826f4071f3a04e34dc3868ece3168db46323 (patch)
treed674eb47ba0dd1cee7c9474f9d64147c47451823
parentc6fa78c73e3a23661014fd03b92d74d2e7df9e81 (diff)
downloaddexon-solidity-c4a0826f4071f3a04e34dc3868ece3168db46323.tar
dexon-solidity-c4a0826f4071f3a04e34dc3868ece3168db46323.tar.gz
dexon-solidity-c4a0826f4071f3a04e34dc3868ece3168db46323.tar.bz2
dexon-solidity-c4a0826f4071f3a04e34dc3868ece3168db46323.tar.lz
dexon-solidity-c4a0826f4071f3a04e34dc3868ece3168db46323.tar.xz
dexon-solidity-c4a0826f4071f3a04e34dc3868ece3168db46323.tar.zst
dexon-solidity-c4a0826f4071f3a04e34dc3868ece3168db46323.zip
Add some missing error locations.
-rw-r--r--libsolidity/inlineasm/AsmAnalysis.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libsolidity/inlineasm/AsmAnalysis.cpp b/libsolidity/inlineasm/AsmAnalysis.cpp
index ec562419..29016ef9 100644
--- a/libsolidity/inlineasm/AsmAnalysis.cpp
+++ b/libsolidity/inlineasm/AsmAnalysis.cpp
@@ -60,7 +60,8 @@ bool AsmAnalyzer::operator()(assembly::Literal const& _literal)
{
m_errors.push_back(make_shared<Error>(
Error::Type::TypeError,
- "String literal too long (" + boost::lexical_cast<std::string>(_literal.value.size()) + " > 32)"
+ "String literal too long (" + boost::lexical_cast<std::string>(_literal.value.size()) + " > 32)",
+ _literal.location
));
return false;
}
@@ -89,7 +90,7 @@ bool AsmAnalyzer::operator()(assembly::Identifier const& _identifier)
m_errors.push_back(make_shared<Error>(
Error::Type::TypeError,
"Function " + _identifier.name + " used without being called.",
- _identifier.location
+ _identifier.location
));
success = false;
}