[PATCH] D116482: [LLVM-C] Use NameLen in LLVMGetNamedGlobalAlias
Jakob Bornecrantz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 1 14:00:22 PST 2022
Wallbraker created this revision.
Wallbraker added a reviewer: aeubanks.
Herald added subscribers: jeroen.dobbelaere, dexonsmith, hiraditya.
Wallbraker requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
I tried to look over the file and didn't see any other non-use of *Len variables.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D116482
Files:
llvm/lib/IR/Core.cpp
Index: llvm/lib/IR/Core.cpp
===================================================================
--- llvm/lib/IR/Core.cpp
+++ llvm/lib/IR/Core.cpp
@@ -2293,7 +2293,7 @@
LLVMValueRef LLVMGetNamedGlobalAlias(LLVMModuleRef M,
const char *Name, size_t NameLen) {
- return wrap(unwrap(M)->getNamedAlias(Name));
+ return wrap(unwrap(M)->getNamedAlias(StringRef(Name, NameLen)));
}
LLVMValueRef LLVMGetFirstGlobalAlias(LLVMModuleRef M) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116482.396877.patch
Type: text/x-patch
Size: 477 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220101/7fc0d55a/attachment.bin>
More information about the llvm-commits
mailing list