[llvm] [DebugInfo] Make DISubprogram's hashing always produce the same result (PR #90770)
Alex Langford via llvm-commits
llvm-commits at lists.llvm.org
Wed May 1 13:49:10 PDT 2024
================
@@ -1184,4 +1186,52 @@ TEST(MetadataTest, DbgVariableRecordConversionRoutines) {
UseNewDbgInfoFormat = false;
}
+// Test that the hashing function for DISubprograms produce the same result
+// after replacing the temporary scope.
+TEST(DIBuilder, HashingDISubprogram) {
+ LLVMContext Ctx;
+ std::unique_ptr<Module> M(new Module("MyModule", Ctx));
----------------
bulbazord wrote:
suggestion: `make_unique`?
https://github.com/llvm/llvm-project/pull/90770
More information about the llvm-commits
mailing list