diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-07-11 08:18:12 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-07-11 08:18:12 +0000 |
commit | c5080ba0c8278fba57efe605560d1f16a7a9e973 (patch) | |
tree | 96e52957ad3c4baee3f9c639c5272eeaa39acd09 /lib/CodeGen/PBQP | |
parent | a98625cdad0a4fefaaf00174669e0cd2f0dbe1bd (diff) | |
download | llvm-c5080ba0c8278fba57efe605560d1f16a7a9e973.tar.gz llvm-c5080ba0c8278fba57efe605560d1f16a7a9e973.tar.bz2 llvm-c5080ba0c8278fba57efe605560d1f16a7a9e973.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PBQP')
-rw-r--r-- | lib/CodeGen/PBQP/Heuristics/Briggs.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/PBQP/Heuristics/Briggs.h b/lib/CodeGen/PBQP/Heuristics/Briggs.h index 30d34d9e3e..4c1ce119ed 100644 --- a/lib/CodeGen/PBQP/Heuristics/Briggs.h +++ b/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. |