mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[NFC][StackSafety] Replace auto with type
Fixes static analyzer is warning.
This commit is contained in:
parent
07bdca3215
commit
f298c20805
@ -122,8 +122,9 @@ template <typename CalleeTy> struct UseInfo {
|
|||||||
// function argument). Range should never set to empty-set, that is an invalid
|
// function argument). Range should never set to empty-set, that is an invalid
|
||||||
// access range that can cause empty-set to be propagated with
|
// access range that can cause empty-set to be propagated with
|
||||||
// ConstantRange::add
|
// ConstantRange::add
|
||||||
std::map<CallInfo<CalleeTy>, ConstantRange, typename CallInfo<CalleeTy>::Less>
|
using CallsTy = std::map<CallInfo<CalleeTy>, ConstantRange,
|
||||||
Calls;
|
typename CallInfo<CalleeTy>::Less>;
|
||||||
|
CallsTy Calls;
|
||||||
|
|
||||||
UseInfo(unsigned PointerSize) : Range{PointerSize, false} {}
|
UseInfo(unsigned PointerSize) : Range{PointerSize, false} {}
|
||||||
|
|
||||||
@ -691,7 +692,7 @@ const ConstantRange *findParamAccess(const FunctionSummary &FS,
|
|||||||
void resolveAllCalls(UseInfo<GlobalValue> &Use,
|
void resolveAllCalls(UseInfo<GlobalValue> &Use,
|
||||||
const ModuleSummaryIndex *Index) {
|
const ModuleSummaryIndex *Index) {
|
||||||
ConstantRange FullSet(Use.Range.getBitWidth(), true);
|
ConstantRange FullSet(Use.Range.getBitWidth(), true);
|
||||||
auto TmpCalls = std::move(Use.Calls);
|
UseInfo<GlobalValue>::CallsTy TmpCalls = std::move(Use.Calls);
|
||||||
for (const auto &C : TmpCalls) {
|
for (const auto &C : TmpCalls) {
|
||||||
const Function *F = findCalleeInModule(C.first.Callee);
|
const Function *F = findCalleeInModule(C.first.Callee);
|
||||||
if (F) {
|
if (F) {
|
||||||
|
Loading…
Reference in New Issue
Block a user