diff options
author | Yi Kong <yikong@google.com> | 2019-10-01 16:18:47 -0700 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2019-10-01 16:18:47 -0700 |
commit | d5fe17eac91c5c0cefb2ab8093f41ddc68c2f724 (patch) | |
tree | f3299a8fe9ff637545d8e97461d84f6294baa5b2 /compiler/optimizing/graph_visualizer.cc | |
parent | bd5690db112e7357bfa7634abbda9762e20959d7 (diff) |
Fix incorrect narrowing type cast
std::string::npos is greater than the maximum value of uint32_t type,
the narrowing cast will make this statement always false.
Found by Clang tautological-constant-out-of-range-compare warning.
Test: N/A
Bug: 72331526
Change-Id: I59b297360ab5672868f2cffc42ec02189275a152
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions