Skip to content

Commit

Permalink
fix dl
Browse files Browse the repository at this point in the history
  • Loading branch information
2over12 committed Oct 14, 2023
1 parent 6347335 commit ffa958d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/anvill/Providers.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,13 @@ class DefaultCallableTypeProvider : public ProxyTypeProvider {
class SpecificationTypeProvider : public BaseTypeProvider {
private:
std::shared_ptr<SpecificationImpl> impl;
const llvm::DataLayout &layout;
llvm::DataLayout layout;

public:
virtual ~SpecificationTypeProvider(void);

explicit SpecificationTypeProvider(const Specification &spec,
const llvm::DataLayout &layout);
llvm::DataLayout layout);

// Try to return the type of a function starting at address `address`. This
// type is the prototype of the function.
Expand Down
4 changes: 2 additions & 2 deletions lib/Providers/TypeProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ void BaseTypeProvider::QueryRegisterStateAtInstruction(

SpecificationTypeProvider::~SpecificationTypeProvider(void) {}

SpecificationTypeProvider::SpecificationTypeProvider(
const Specification &spec, const llvm::DataLayout &layout)
SpecificationTypeProvider::SpecificationTypeProvider(const Specification &spec,
llvm::DataLayout layout)
: BaseTypeProvider(spec.impl->type_translator),
impl(spec.impl),
layout(layout) {}
Expand Down

0 comments on commit ffa958d

Please sign in to comment.