diff options
author | Youngsuk Kim <joseph942010@gmail.com> | 2024-05-02 10:10:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 10:10:38 -0400 |
commit | 82f72c1aa8ef36b521a617a291c9f732edca9d12 (patch) | |
tree | ab86debecb921e59229150f41ba59415c4d89461 /llvm/lib/Transforms/Utils/CloneFunction.cpp | |
parent | d6173167df31388869d22751fdd745f5da928ef7 (diff) | |
download | llvm-82f72c1aa8ef36b521a617a291c9f732edca9d12.zip llvm-82f72c1aa8ef36b521a617a291c9f732edca9d12.tar.gz llvm-82f72c1aa8ef36b521a617a291c9f732edca9d12.tar.bz2 |
[clang][Sema] Re-use existing BinaryOperator if possible (#90625)
First round of Sema checks were run at initial parsing step. Creating a
new BinaryOperator instance (with the re-built LHS or RHS) will trigger
another round of Sema checks, which can lead to duplicate diagnostic
warning messages.
All we want here is to replace the LHS or RHS with a NonOdrUse version.
Don't create a new BinaryOperator, but simply replace the LHS or RHS of
the given BinaryOperator.
Fixes #45783
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
0 files changed, 0 insertions, 0 deletions