diff --git a/llvm/lib/Transforms/Utils/FixIrreducible.cpp b/llvm/lib/Transforms/Utils/FixIrreducible.cpp index af5a99a0df79..ef8b80cecac9 100644 --- a/llvm/lib/Transforms/Utils/FixIrreducible.cpp +++ b/llvm/lib/Transforms/Utils/FixIrreducible.cpp @@ -236,8 +236,10 @@ static void createNaturalLoopInternal(LoopInfo &LI, DominatorTree &DT, #endif // EXPENSIVE_CHECKS } +namespace llvm { // Enable the graph traits required for traversing a Loop body. -template <> struct llvm::GraphTraits : LoopBodyTraits {}; +template <> struct GraphTraits : LoopBodyTraits {}; +} // namespace llvm // Overloaded wrappers to go with the function template below. BasicBlock *unwrapBlock(BasicBlock *B) { return B; }