Skip to content

Commit 53adfd8

Browse files
committed
no-canonicalize
1 parent f105e5a commit 53adfd8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

clang/lib/Analysis/LifetimeSafety.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -966,9 +966,11 @@ 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{Allocator, /*canonicalize=*/false};
971+
LoanSet::Factory LoanSetFactory{Allocator, /*canonicalize=*/false};
972+
ExpiredLoanMap::Factory ExpiredLoanMapFactory{Allocator,
973+
/*canonicalize=*/false};
972974
};
973975

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

0 commit comments

Comments
 (0)