aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-12-05 20:02:18 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-12-05 20:02:18 +0000
commit79d55f5c1f9b268b57d481c022463105e04d3c9d (patch)
tree802b28f05ae47db37b3bc1b1d06eaaf6e42ba3b4 /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parent83e723a9c9fe5dbcb3ae0ec37bcef11d8924c0be (diff)
downloadllvm-79d55f5c1f9b268b57d481c022463105e04d3c9d.zip
llvm-79d55f5c1f9b268b57d481c022463105e04d3c9d.tar.gz
llvm-79d55f5c1f9b268b57d481c022463105e04d3c9d.tar.bz2
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. llvm-svn: 196528
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBlockPlacement.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
index b725bfb..7eec164 100644
--- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
@@ -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;