aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-12-10 18:55:37 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-12-10 18:55:37 +0000
commit0f5f015bfd457fe4353aca47ab03f9b59b73bde3 (patch)
tree485af4f7a09d012e15e85986fa02f5ae61031285 /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parentfe078843a09cf5244c4471ec3b0a6860d24f38f4 (diff)
downloadllvm-0f5f015bfd457fe4353aca47ab03f9b59b73bde3.zip
llvm-0f5f015bfd457fe4353aca47ab03f9b59b73bde3.tar.gz
llvm-0f5f015bfd457fe4353aca47ab03f9b59b73bde3.tar.bz2
Fix gcc warnings.
Unused variable and unused typedef in release build. llvm-svn: 196947
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBlockPlacement.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
index 7eec164..177e440 100644
--- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
@@ -949,7 +949,9 @@ void MachineBlockPlacement::buildCFGChains(MachineFunction &F) {
BlockChain &FunctionChain = *BlockToChain[&F.front()];
buildChain(&F.front(), FunctionChain, BlockWorkList);
+#ifndef NDEBUG
typedef SmallPtrSet<MachineBasicBlock *, 16> FunctionBlockSetType;
+#endif
DEBUG({
// Crash at the end so we get all of the debugging output first.
bool BadFunc = false;