projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1324bb2
)
[LLVM-C] Use NameLen in LLVMGetNamedGlobalAlias
author
Jakob Bornecrantz
<jakob@collabora.com>
Wed, 19 Jan 2022 16:48:28 +0000
(08:48 -0800)
committer
Arthur Eubanks
<aeubanks@google.com>
Wed, 19 Jan 2022 16:58:57 +0000
(08:58 -0800)
I tried to look over the file and didn't see any other non-use of *Len variables.
Reviewed By: deadalnix
Differential Revision: https://reviews.llvm.org/D116482
llvm/lib/IR/Core.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Core.cpp
b/llvm/lib/IR/Core.cpp
index
85271dd
..
9415e35
100644
(file)
--- a/
llvm/lib/IR/Core.cpp
+++ b/
llvm/lib/IR/Core.cpp
@@
-2293,7
+2293,7
@@
LLVMValueRef LLVMAddAlias2(LLVMModuleRef M, LLVMTypeRef ValueTy,
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) {