diff options
Diffstat (limited to 'clang/lib/AST/ByteCode/Program.h')
-rw-r--r-- | clang/lib/AST/ByteCode/Program.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ByteCode/Program.h b/clang/lib/AST/ByteCode/Program.h index 7f69d97..bd2672a 100644 --- a/clang/lib/AST/ByteCode/Program.h +++ b/clang/lib/AST/ByteCode/Program.h @@ -84,7 +84,7 @@ public: const Expr *Init = nullptr); /// Returns or creates a dummy value for unknown declarations. - std::optional<unsigned> getOrCreateDummy(const ValueDecl *VD); + std::optional<unsigned> getOrCreateDummy(const DeclTy &D); /// Creates a global and returns its index. std::optional<unsigned> createGlobal(const ValueDecl *VD, const Expr *Init); @@ -209,7 +209,7 @@ private: llvm::DenseMap<const RecordDecl *, Record *> Records; /// Dummy parameter to generate pointers from. - llvm::DenseMap<const ValueDecl *, unsigned> DummyVariables; + llvm::DenseMap<const void *, unsigned> DummyVariables; /// Creates a new descriptor. template <typename... Ts> Descriptor *allocateDescriptor(Ts &&...Args) { |