Skip to content
Snippets Groups Projects
Commit bfcd5044 authored by Alessandro Di Federico's avatar Alessandro Di Federico
Browse files

Minor fixes to make clang happy

parent e540400f
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,12 @@ template class ReachingDefinitionsImplPass<BasicBlockInfo,
template<class BBI, ReachingDefinitionsResult R>
char ReachingDefinitionsImplPass<BBI, R>::ID = 0;
template<>
char ReachingDefinitionsImplPass<BasicBlockInfo, ReachingDefinitionsResult::ReachingDefinitions>::ID = 0;
template<>
char ReachingDefinitionsImplPass<ConditionalBasicBlockInfo, ReachingDefinitionsResult::ReachedLoads>::ID = 0;
static RegisterPass<ReachingDefinitionsPass> X1("rdp",
"Reaching Definitions Pass",
true,
......
......@@ -389,4 +389,10 @@ private:
std::map<llvm::TerminatorInst *, int32_t> BranchConditionNumberMap;
};
template<>
char ReachingDefinitionsImplPass<BasicBlockInfo, ReachingDefinitionsResult::ReachingDefinitions>::ID;
template<>
char ReachingDefinitionsImplPass<ConditionalBasicBlockInfo, ReachingDefinitionsResult::ReachedLoads>::ID;
#endif // _REACHINGDEFINITIONS_H
......@@ -35,7 +35,7 @@ public:
private:
friend class SubGraph;
friend class llvm::GraphTraits<SubGraph<InnerNodeType>>;
friend struct llvm::GraphTraits<SubGraph<InnerNodeType>>;
llvm::SmallVector<Node *, 2> Children;
InnerNodeType Value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment