aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2024-01-21 16:24:04 -0500
committerGitHub <noreply@github.com>2024-01-21 16:24:04 -0500
commit86b6dfc619695b5bfb1880b2ed9abb4a6805fbe6 (patch)
tree3e1d788387d10a0d88d36be79ecfe1cd427303c1 /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
parentcc3fd1974696a792ba70ba670ed761937cd0735c (diff)
downloadllvm-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