Skip to content

Commit 0775d9e

Browse files
committed
no-canonicalize
1 parent f105e5a commit 0775d9e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

clang/lib/Analysis/LifetimeSafety.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -966,9 +966,13 @@ using ExpiredLoanMap = llvm::ImmutableMap<LoanID, const ExpireFact *>;
966966
/// An object to hold the factories for immutable collections, ensuring
967967
/// that all created states share the same underlying memory management.
968968
struct LifetimeFactory {
969-
OriginLoanMap::Factory OriginMapFactory;
970-
LoanSet::Factory LoanSetFactory;
971-
ExpiredLoanMap::Factory ExpiredLoanMapFactory;
969+
llvm::BumpPtrAllocator Allocator;
970+
OriginLoanMap::Factory OriginMapFactory =
971+
OriginLoanMap::Factory(Allocator, /*canonicalize=*/false);
972+
LoanSet::Factory LoanSetFactory =
973+
LoanSet::Factory(Allocator, /*canonicalize=*/false);
974+
ExpiredLoanMap::Factory ExpiredLoanMapFactory =
975+
ExpiredLoanMap::Factory(Allocator, /*canonicalize=*/false);
972976
};
973977

974978
/// Represents the dataflow lattice for loan propagation.

0 commit comments

Comments
 (0)