mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-13 13:00:24 +00:00
[CFLAA] And even more MSVC fixes
Remove a couple more initializer lists and constexpr dependencies. llvm-svn: 216998
This commit is contained in:
parent
8e3b8a2da4
commit
5c25f70da3
@ -73,6 +73,9 @@ static Optional<Value *> getTargetValue(Instruction *);
|
|||||||
// This notes that we should ignore those.
|
// This notes that we should ignore those.
|
||||||
static bool hasUsefulEdges(Instruction *);
|
static bool hasUsefulEdges(Instruction *);
|
||||||
|
|
||||||
|
const StratifiedIndex StratifiedLink::SetSentinel =
|
||||||
|
std::numeric_limits<StratifiedIndex>::max();
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
// StratifiedInfo Attribute things.
|
// StratifiedInfo Attribute things.
|
||||||
typedef unsigned StratifiedAttr;
|
typedef unsigned StratifiedAttr;
|
||||||
@ -837,7 +840,8 @@ static void buildGraphFrom(CFLAliasAnalysis &Analysis, Function *Fn,
|
|||||||
auto From = findOrInsertNode(E.From);
|
auto From = findOrInsertNode(E.From);
|
||||||
auto FlippedWeight = flipWeight(E.Weight);
|
auto FlippedWeight = flipWeight(E.Weight);
|
||||||
auto Attrs = E.AdditionalAttrs;
|
auto Attrs = E.AdditionalAttrs;
|
||||||
Graph.addEdge(From, To, {E.Weight, Attrs}, {FlippedWeight, Attrs});
|
Graph.addEdge(From, To, std::make_pair(E.Weight, Attrs),
|
||||||
|
std::make_pair(FlippedWeight, Attrs));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -54,8 +54,7 @@ struct StratifiedLink {
|
|||||||
// Optional<StratifiedIndex> because Optional<StratifiedIndex> would
|
// Optional<StratifiedIndex> because Optional<StratifiedIndex> would
|
||||||
// eat up a considerable amount of extra memory, after struct
|
// eat up a considerable amount of extra memory, after struct
|
||||||
// padding/alignment is taken into account.
|
// padding/alignment is taken into account.
|
||||||
static const auto SetSentinel =
|
static const StratifiedIndex SetSentinel;
|
||||||
std::numeric_limits<StratifiedIndex>::max();
|
|
||||||
|
|
||||||
// \brief The index for the set "above" current
|
// \brief The index for the set "above" current
|
||||||
StratifiedIndex Above;
|
StratifiedIndex Above;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user