diff options
author | Tamir Duberstein <tamird@gmail.com> | 2023-07-07 16:50:52 +0000 |
---|---|---|
committer | Scott Linder <Scott.Linder@amd.com> | 2023-07-07 16:51:20 +0000 |
commit | eb98abab2c83c9c101c4749c93836108657d6164 (patch) | |
tree | adc3e58e0fadad08d4db44e63e19910e8d88b1ed /llvm/lib/IR/DebugInfo.cpp | |
parent | 930635271f810316f48bd1aa78935acf36a08f8f (diff) | |
download | llvm-eb98abab2c83c9c101c4749c93836108657d6164.zip llvm-eb98abab2c83c9c101c4749c93836108657d6164.tar.gz llvm-eb98abab2c83c9c101c4749c93836108657d6164.tar.bz2 |
[LLVM-C] Use unwrapDI in LLVMDITypeGetName
This function otherwise crashes. This behavior has been incorrect since
its introduction in 260b581498bed0b847e7e086852e0082d266711d (D46627).
Reviewed By: scott.linder
Differential Revision: https://reviews.llvm.org/D154630
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 0237448..48b5501 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -1487,7 +1487,7 @@ uint16_t LLVMGetDINodeTag(LLVMMetadataRef MD) { } const char *LLVMDITypeGetName(LLVMMetadataRef DType, size_t *Length) { - StringRef Str = unwrap<DIType>(DType)->getName(); + StringRef Str = unwrapDI<DIType>(DType)->getName(); *Length = Str.size(); return Str.data(); } |