Skip to content

Commit

Permalink
[RemoveAddrspaces] make MappedTypes non-static (#44453)
Browse files Browse the repository at this point in the history
(cherry picked from commit 610fc20)
  • Loading branch information
vchuravy authored and staticfloat committed Dec 22, 2022
1 parent 3365bc5 commit 8dfa55e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/llvm-remove-addrspaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,9 @@ class AddrspaceRemoveTypeRemapper : public ValueMapTypeRemapper {
}

private:
static DenseMap<Type *, Type *> MappedTypes;
DenseMap<Type *, Type *> MappedTypes;
};

DenseMap<Type *, Type *> AddrspaceRemoveTypeRemapper::MappedTypes;

class AddrspaceRemoveValueMaterializer : public ValueMaterializer {
ValueToValueMapTy &VM;
Expand Down

0 comments on commit 8dfa55e

Please sign in to comment.