mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
llvm-cov: Try to appease MSVC after r217404
llvm-svn: 217406
This commit is contained in:
parent
90cbaf828c
commit
51a0be5757
@ -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