summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PBQP
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-07-11 08:18:12 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-07-11 08:18:12 +0000
commit34e0d14ff4eb2a64f0e1f259583e1d33c466774f (patch)
tree13ff12a397725962f40867b90406250d1800ff0b /llvm/lib/CodeGen/PBQP
parent928b5934869005090cba396ac431275f4baa53c7 (diff)
downloadbcm5719-llvm-34e0d14ff4eb2a64f0e1f259583e1d33c466774f.tar.gz
bcm5719-llvm-34e0d14ff4eb2a64f0e1f259583e1d33c466774f.zip
Remove two other uses of ATTRIBUTE_UNUSED for variables only used within
assert()s, switching to void-casts. Removed an unneeded Compiler.h include as a result. There are two other uses in LLVM, but they're not due to assert()s, so I've left them alone. llvm-svn: 108088
Diffstat (limited to 'llvm/lib/CodeGen/PBQP')
-rw-r--r--llvm/lib/CodeGen/PBQP/Heuristics/Briggs.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/PBQP/Heuristics/Briggs.h b/llvm/lib/CodeGen/PBQP/Heuristics/Briggs.h
index 30d34d9e3e9..4c1ce119ed0 100644
--- a/llvm/lib/CodeGen/PBQP/Heuristics/Briggs.h
+++ b/llvm/lib/CodeGen/PBQP/Heuristics/Briggs.h
@@ -18,7 +18,6 @@
#ifndef LLVM_CODEGEN_PBQP_HEURISTICS_BRIGGS_H
#define LLVM_CODEGEN_PBQP_HEURISTICS_BRIGGS_H
-#include "llvm/Support/Compiler.h"
#include "../HeuristicSolver.h"
#include "../HeuristicBase.h"
@@ -267,8 +266,8 @@ namespace PBQP {
if (!nd.isHeuristic)
return;
- EdgeData &ed ATTRIBUTE_UNUSED = getHeuristicEdgeData(eItr);
-
+ EdgeData &ed = getHeuristicEdgeData(eItr);
+ (void)ed;
assert(ed.isUpToDate && "Edge data is not up to date.");
// Update node.
OpenPOWER on IntegriCloud