diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2024-01-21 16:24:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-21 16:24:04 -0500 |
commit | 86b6dfc619695b5bfb1880b2ed9abb4a6805fbe6 (patch) | |
tree | 3e1d788387d10a0d88d36be79ecfe1cd427303c1 /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | |
parent | cc3fd1974696a792ba70ba670ed761937cd0735c (diff) | |
download | llvm-86b6dfc619695b5bfb1880b2ed9abb4a6805fbe6.zip llvm-86b6dfc619695b5bfb1880b2ed9abb4a6805fbe6.tar.gz llvm-86b6dfc619695b5bfb1880b2ed9abb4a6805fbe6.tar.bz2 |
[libc++] Fix Coverity warning about use-after-move (#78780)
While the code is technically correct because the index is never
actually moved from (and anyway that wouldn't matter since it's an
integer), it's still better style not to access an object after it has
been moved-from. Since this is so easy to do, just save the index in a
temporary variable.
rdar://120501577
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions