aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorJan Voung <jvoung@google.com>2025-01-08 08:27:16 -0500
committerGitHub <noreply@github.com>2025-01-08 08:27:16 -0500
commit72a28a3bf0b539bcdfd8f41905675ce6a890c0ac (patch)
treea623395ebaad8b66330f03bb5a6af2645ec3e0f9 /clang/lib/CodeGen/ModuleBuilder.cpp
parentd07762e47419a1ef892729a420d0c4769b6702a7 (diff)
downloadllvm-72a28a3bf0b539bcdfd8f41905675ce6a890c0ac.zip
llvm-72a28a3bf0b539bcdfd8f41905675ce6a890c0ac.tar.gz
llvm-72a28a3bf0b539bcdfd8f41905675ce6a890c0ac.tar.bz2
[clang][dataflow] Use smart pointer caching in unchecked optional accessor (#120249)
Part 2 (and final part) following https://github.com/llvm/llvm-project/pull/120102 Allows users to do things like: ``` if (o->x.has_value()) { ((*o).x).value(); } ``` where the `->` and `*` are operator overload calls. A user could instead extract the nested optional into a local variable once instead of doing two accessor calls back to back, but currently they are unsure why the code is flagged.
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions