[llvm] [gardening][DebugInfo][NFC] Improve comment on HashingDISubprogram test (PR #91543)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 8 15:26:22 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-ir
Author: Augusto Noronha (augusto2112)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/91543.diff
1 Files Affected:
- (modified) llvm/unittests/IR/DebugInfoTest.cpp (+3-2)
``````````diff
diff --git a/llvm/unittests/IR/DebugInfoTest.cpp b/llvm/unittests/IR/DebugInfoTest.cpp
index 8847a5759ad9f..cac8acbe15a79 100644
--- a/llvm/unittests/IR/DebugInfoTest.cpp
+++ b/llvm/unittests/IR/DebugInfoTest.cpp
@@ -1195,8 +1195,9 @@ TEST(MetadataTest, DbgVariableRecordConversionRoutines) {
UseNewDbgInfoFormat = OldDbgValueMode;
}
-// Test that the hashing function for DISubprograms produce the same result
-// after replacing the temporary scope.
+// Test that the hashing function for DISubprograms representing methods produce
+// the same result after replacing their scope (the type containing the
+// subprogram) from a temporary DIType with the permanent one.
TEST(DIBuilder, HashingDISubprogram) {
LLVMContext Ctx;
std::unique_ptr<Module> M = std::make_unique<Module>("MyModule", Ctx);
``````````
</details>
https://github.com/llvm/llvm-project/pull/91543
More information about the llvm-commits
mailing list