diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-11-02 11:44:15 +1100 | 
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-11-02 23:39:29 +1100 | 
| commit | 0fa86f966062a66f46b6471310d07e00b701e398 (patch) | |
| tree | 79f6a0f115189673fbe297077cd0c19075670ef2 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 36040aacc225c922388a98e74b53222d606b4c9f (diff) | |
| download | rust-0fa86f966062a66f46b6471310d07e00b701e398.tar.gz rust-0fa86f966062a66f46b6471310d07e00b701e398.zip | |
Use a dedicated safe wrapper for `LLVMRustGetHostCPUName`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp index 3b7dc6de825..245edde2768 100644 --- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp @@ -382,9 +382,9 @@ extern "C" void LLVMRustGetTargetFeature(LLVMTargetMachineRef TM, size_t Index, *Desc = Feat.Desc; } -extern "C" const char *LLVMRustGetHostCPUName(size_t *len) { +extern "C" const char *LLVMRustGetHostCPUName(size_t *OutLen) { StringRef Name = sys::getHostCPUName(); - *len = Name.size(); + *OutLen = Name.size(); return Name.data(); } | 
