Skip to content

Commit 21ee9e4

Browse files
[JITLink][AArch32] Remove duplicate '0x' hex prefixes from formatv strings in error messages
1 parent 1025189 commit 21ee9e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/ExecutionEngine/JITLink/aarch32.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,15 @@ struct ArmRelocation {
194194
Error makeUnexpectedOpcodeError(const LinkGraph &G, const ThumbRelocation &R,
195195
Edge::Kind Kind) {
196196
return make_error<JITLinkError>(
197-
formatv("Invalid opcode [ 0x{0:x4}, 0x{1:x4} ] for relocation: {2}",
197+
formatv("Invalid opcode [ {0:x4}, {1:x4} ] for relocation: {2}",
198198
static_cast<uint16_t>(R.Hi), static_cast<uint16_t>(R.Lo),
199199
G.getEdgeKindName(Kind)));
200200
}
201201

202202
Error makeUnexpectedOpcodeError(const LinkGraph &G, const ArmRelocation &R,
203203
Edge::Kind Kind) {
204204
return make_error<JITLinkError>(
205-
formatv("Invalid opcode [ 0x{0:x8} ] for relocation: {1}",
205+
formatv("Invalid opcode {0:x8} for relocation: {1}",
206206
static_cast<uint32_t>(R.Wd), G.getEdgeKindName(Kind)));
207207
}
208208

0 commit comments

Comments
 (0)