[all-commits] [llvm/llvm-project] 99a64c: AMDGPULibCalls::parseFunctionName - use reference ...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Fri Oct 22 03:46:47 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 99a64cc9da298d398f2e445741c420be53491f73
https://github.com/llvm/llvm-project/commit/99a64cc9da298d398f2e445741c420be53491f73
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2021-10-22 (Fri, 22 Oct 2021)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
Log Message:
-----------
AMDGPULibCalls::parseFunctionName - use reference instead of pointer. NFCI.
parseFunctionName allowed a default null pointer, despite it being dereferenced immediately to be used as a reference and that all callers were taking the address of an existing reference.
Fixes static analyzer warning about potential dereferenced nulls
More information about the All-commits
mailing list