[llvm] r196528 - Revert part of GCC warning fix to fix debug build.

Matt Arsenault Matthew.Arsenault at amd.com
Thu Dec 5 12:02:18 PST 2013


Author: arsenm
Date: Thu Dec  5 14:02:18 2013
New Revision: 196528

URL: http://llvm.org/viewvc/llvm-project?rev=196528&view=rev
Log:
Revert part of GCC warning fix to fix debug build.

The typedef is used inside the DEBUG(), and apparently can't be moved
inside of it.

Modified:
    llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp

Modified: llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp?rev=196528&r1=196527&r2=196528&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp Thu Dec  5 14:02:18 2013
@@ -949,6 +949,7 @@ void MachineBlockPlacement::buildCFGChai
   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;





More information about the llvm-commits mailing list