mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[llvm-exegesis] Ignore double spaced separators in asm strings
Some asm has double spaces between operands, the deserializer was keeping these empty split pieces, causing assertions later on: 'ADC16mi RDI i_0x1x i_0x0x i_0x1x' llvm-svn: 341799
This commit is contained in:
parent
d7c0f774c4
commit
73a837ca93
@ -60,7 +60,7 @@ static llvm::StringRef
|
||||
deserialize(const exegesis::BenchmarkResultContext &Context,
|
||||
llvm::StringRef String, llvm::MCInst &Value) {
|
||||
llvm::SmallVector<llvm::StringRef, 8> Pieces;
|
||||
String.split(Pieces, " ");
|
||||
String.split(Pieces, " ", /* MaxSplit */ -1, /* KeepEmpty */ false);
|
||||
if (Pieces.empty())
|
||||
return "Invalid Instruction";
|
||||
bool ProcessOpcode = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user