Skip to content

Commit

Permalink
Fixup for r254547: use format_hex() to simplify code.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254560 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
vonosmas committed Dec 2, 2015
1 parent 4744e8b commit 66c86b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1514,8 +1514,7 @@ unsigned HexagonAsmParser::validateTargetOperandClass(MCParsedAsmOperand &AsmOp,
void HexagonAsmParser::OutOfRange(SMLoc IDLoc, long long Val, long long Max) {
std::string errStr;
raw_string_ostream ES(errStr);
ES << "value " << Val << "(" << format("0x%" PRIx64, Val)
<< ") out of range: ";
ES << "value " << Val << "(" << format_hex(Val, 0) << ") out of range: ";
if (Max >= 0)
ES << "0-" << Max;
else
Expand Down

0 comments on commit 66c86b0

Please sign in to comment.