diff options
author | Kazu Hirata <kazu@google.com> | 2024-12-12 16:03:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 16:03:20 -0800 |
commit | d01c11df04ae45a3d5b08e69bb683c760bbddd54 (patch) | |
tree | 16a9bbc1c07e839a23d83aa2b046a7316452db06 /clang/lib/Analysis/ThreadSafetyCommon.cpp | |
parent | ea6e13586ce22291e9e7a4e382f6b2409b406da9 (diff) | |
download | llvm-d01c11df04ae45a3d5b08e69bb683c760bbddd54.zip llvm-d01c11df04ae45a3d5b08e69bb683c760bbddd54.tar.gz llvm-d01c11df04ae45a3d5b08e69bb683c760bbddd54.tar.bz2 |
[clang] Migrate away from PointerUnion::{is,get} (NFC) (#119724)
Note that PointerUnion::{is,get} have been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
// isa<T>, cast<T> and the llvm::dyn_cast<T>
I'm not touching PointerUnion::dyn_cast for now because it's a bit
complicated; we could blindly migrate it to dyn_cast_if_present, but
we should probably use dyn_cast when the operand is known to be
non-null.
Diffstat (limited to 'clang/lib/Analysis/ThreadSafetyCommon.cpp')
-rw-r--r-- | clang/lib/Analysis/ThreadSafetyCommon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/ThreadSafetyCommon.cpp b/clang/lib/Analysis/ThreadSafetyCommon.cpp index cbcfefd..211e940 100644 --- a/clang/lib/Analysis/ThreadSafetyCommon.cpp +++ b/clang/lib/Analysis/ThreadSafetyCommon.cpp @@ -326,7 +326,7 @@ til::SExpr *SExprBuilder::translateDeclRefExpr(const DeclRefExpr *DRE, } assert(I == 0); - return Ctx->FunArgs.get<til::SExpr *>(); + return cast<til::SExpr *>(Ctx->FunArgs); } } // Map the param back to the param of the original function declaration |