mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
llvm-cov: Try to appease MSVC after r217404
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217406 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c5bdff0176
commit
0acb48923d
@ -123,11 +123,11 @@ ErrorOr<int64_t> CounterMappingContext::evaluate(const Counter &C) const {
|
||||
return 0;
|
||||
case Counter::CounterValueReference:
|
||||
if (C.getCounterID() >= CounterValues.size())
|
||||
return std::errc::argument_out_of_domain;
|
||||
return std::make_error_code(std::errc::argument_out_of_domain);
|
||||
return CounterValues[C.getCounterID()];
|
||||
case Counter::Expression: {
|
||||
if (C.getExpressionID() >= Expressions.size())
|
||||
return std::errc::argument_out_of_domain;
|
||||
return std::make_error_code(std::errc::argument_out_of_domain);
|
||||
const auto &E = Expressions[C.getExpressionID()];
|
||||
ErrorOr<int64_t> LHS = evaluate(E.LHS);
|
||||
if (!LHS)
|
||||
|
Loading…
Reference in New Issue
Block a user