aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAndy Kaylor <andrew.kaylor@intel.com>2023-08-14 10:36:54 -0700
committerAndy Kaylor <andrew.kaylor@intel.com>2023-08-14 11:04:12 -0700
commit33af74d6a02dc8d2980a2abb3ed94dafbeb46c30 (patch)
tree96bd79de89ef282e6505f10ff2b0a3fd6a796bc1 /clang/lib/Frontend/CompilerInvocation.cpp
parentd4a2d65649011b125bb3c0c3bed22fb8fc653a79 (diff)
downloadllvm-33af74d6a02dc8d2980a2abb3ed94dafbeb46c30.zip
llvm-33af74d6a02dc8d2980a2abb3ed94dafbeb46c30.tar.gz
llvm-33af74d6a02dc8d2980a2abb3ed94dafbeb46c30.tar.bz2
Fix "use after move" in iterator_range
A static analysis tool reported a "use after move" error in a place where the same object was being passed to two different calls using std::forward. While this seems unlikely to present an actual problem, removing the std::forward makes the code slightly more robust. This relates to the comments here: https://reviews.llvm.org/D152891#inline-1522454 Differential Revision: https://reviews.llvm.org/D157453
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions