aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/Program.cpp
diff options
context:
space:
mode:
authorTimm Baeder <tbaeder@redhat.com>2025-04-16 09:00:52 +0200
committerGitHub <noreply@github.com>2025-04-16 09:00:52 +0200
commit05eafd9f2b14f2e8d2d95f46465c5cc53aafbc56 (patch)
tree6ea23b52dc5aacfb296dd56955174b08bf92092a /clang/lib/AST/ByteCode/Program.cpp
parenta56f966417bc53051fa39e3db6fcc95f9abf0b5c (diff)
downloadllvm-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.cpp2
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>())