diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-04-16 09:00:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-16 09:00:52 +0200 |
commit | 05eafd9f2b14f2e8d2d95f46465c5cc53aafbc56 (patch) | |
tree | 6ea23b52dc5aacfb296dd56955174b08bf92092a /clang/lib/AST/ByteCode/Program.cpp | |
parent | a56f966417bc53051fa39e3db6fcc95f9abf0b5c (diff) | |
download | llvm-05eafd9f2b14f2e8d2d95f46465c5cc53aafbc56.zip llvm-05eafd9f2b14f2e8d2d95f46465c5cc53aafbc56.tar.gz llvm-05eafd9f2b14f2e8d2d95f46465c5cc53aafbc56.tar.bz2 |
[clang][bytecode] Explicitly mark constexpr-unknown variables as such (#135806)
Instead of trying to figure out what's constexpr-unknown later on.
Diffstat (limited to 'clang/lib/AST/ByteCode/Program.cpp')
-rw-r--r-- | clang/lib/AST/ByteCode/Program.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ByteCode/Program.cpp b/clang/lib/AST/ByteCode/Program.cpp index c83f557..fdb7b96 100644 --- a/clang/lib/AST/ByteCode/Program.cpp +++ b/clang/lib/AST/ByteCode/Program.cpp @@ -156,7 +156,7 @@ unsigned Program::getOrCreateDummy(const DeclTy &D) { if (const auto *E = dyn_cast<const Expr *>(D)) { QT = E->getType(); } else { - const ValueDecl *VD = cast<ValueDecl>(cast<const Decl *>(D)); + const auto *VD = cast<ValueDecl>(cast<const Decl *>(D)); IsWeak = VD->isWeak(); QT = VD->getType(); if (const auto *RT = QT->getAs<ReferenceType>()) |