Commit cab4c10
authored
[mlir][AsmParser] Avoid use of moved value (#108789)
'std::string detailData' is moved in the innermost loop of a 2-layer
loop, but is written to throughout the whole duration of the 2-layer
loop.
After move, std::string is in an unspecified state
(implementation-dependent).
Avoid using a moved value, as it incurs undefined behavior.1 parent 6784202 commit cab4c10
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2412 | 2412 | | |
2413 | 2413 | | |
2414 | 2414 | | |
2415 | | - | |
2416 | | - | |
2417 | 2415 | | |
2418 | 2416 | | |
2419 | 2417 | | |
2420 | 2418 | | |
2421 | 2419 | | |
2422 | 2420 | | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
2423 | 2424 | | |
2424 | 2425 | | |
2425 | 2426 | | |
| |||
2440 | 2441 | | |
2441 | 2442 | | |
2442 | 2443 | | |
2443 | | - | |
| 2444 | + | |
2444 | 2445 | | |
2445 | 2446 | | |
2446 | 2447 | | |
| |||
0 commit comments