[PATCH] D51141: [C-API][DIBuilder] Use NameLen in LLVMDIBuilderCreateParameterVariable

Robert Widmann via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 25 12:55:29 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL340691: [C-API][DIBuilder] Use NameLen in LLVMDIBuilderCreateParameterVariable (authored by CodaFi, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D51141?vs=162102&id=162563#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D51141

Files:
  llvm/trunk/lib/IR/DebugInfo.cpp


Index: llvm/trunk/lib/IR/DebugInfo.cpp
===================================================================
--- llvm/trunk/lib/IR/DebugInfo.cpp
+++ llvm/trunk/lib/IR/DebugInfo.cpp
@@ -1330,7 +1330,7 @@
     size_t NameLen, unsigned ArgNo, LLVMMetadataRef File, unsigned LineNo,
     LLVMMetadataRef Ty, LLVMBool AlwaysPreserve, LLVMDIFlags Flags) {
   return wrap(unwrap(Builder)->createParameterVariable(
-                  unwrap<DIScope>(Scope), Name, ArgNo, unwrap<DIFile>(File),
+                  unwrap<DIScope>(Scope), {Name, NameLen}, ArgNo, unwrap<DIFile>(File),
                   LineNo, unwrap<DIType>(Ty), AlwaysPreserve,
                   map_from_llvmDIFlags(Flags)));
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51141.162563.patch
Type: text/x-patch
Size: 688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180825/9b67e389/attachment.bin>


More information about the llvm-commits mailing list