Revert part of GCC warning fix to fix debug build.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 5 Dec 2013 20:02:18 +0000 (20:02 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 5 Dec 2013 20:02:18 +0000 (20:02 +0000)
The typedef is used inside the DEBUG(), and apparently can't be moved
inside of it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196528 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineBlockPlacement.cpp

index b725bfb49c830506ca926711f0f8af4c906b9fed..7eec164f148d6848f7bcdfce80b57d98ee354d6e 100644 (file)
@@ -949,6 +949,7 @@ void MachineBlockPlacement::buildCFGChains(MachineFunction &F) {
   BlockChain &FunctionChain = *BlockToChain[&F.front()];
   buildChain(&F.front(), FunctionChain, BlockWorkList);
 
+  typedef SmallPtrSet<MachineBasicBlock *, 16> FunctionBlockSetType;
   DEBUG({
     // Crash at the end so we get all of the debugging output first.
     bool BadFunc = false;