[llvm-commits] [llvm] r94673 - in /llvm/trunk/lib/CodeGen: MachineFunction.cpp PBQP/Heuristics/Briggs.h
Chandler Carruth
chandlerc at gmail.com
Wed Jan 27 02:27:10 PST 2010
Author: chandlerc
Date: Wed Jan 27 04:27:10 2010
New Revision: 94673
URL: http://llvm.org/viewvc/llvm-project?rev=94673&view=rev
Log:
Silence GCC warnings with asserts turned off. No functionality change.
Modified:
llvm/trunk/lib/CodeGen/MachineFunction.cpp
llvm/trunk/lib/CodeGen/PBQP/Heuristics/Briggs.h
Modified: llvm/trunk/lib/CodeGen/MachineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineFunction.cpp?rev=94673&r1=94672&r2=94673&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineFunction.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineFunction.cpp Wed Jan 27 04:27:10 2010
@@ -453,8 +453,7 @@
bool isLinkerPrivate) const {
assert(JumpTableInfo && "No jump tables");
- const std::vector<MachineJumpTableEntry> &JTs =JumpTableInfo->getJumpTables();
- assert(JTI < JTs.size() && "Invalid JTI!");
+ assert(JTI < JumpTableInfo->getJumpTables().size() && "Invalid JTI!");
const MCAsmInfo &MAI = *getTarget().getMCAsmInfo();
const char *Prefix = isLinkerPrivate ? MAI.getLinkerPrivateGlobalPrefix() :
Modified: llvm/trunk/lib/CodeGen/PBQP/Heuristics/Briggs.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PBQP/Heuristics/Briggs.h?rev=94673&r1=94672&r2=94673&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PBQP/Heuristics/Briggs.h (original)
+++ llvm/trunk/lib/CodeGen/PBQP/Heuristics/Briggs.h Wed Jan 27 04:27:10 2010
@@ -18,6 +18,7 @@
#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"
@@ -273,7 +274,7 @@
if (!nd.isHeuristic)
return;
- EdgeData &ed = getHeuristicEdgeData(eItr);
+ EdgeData &ed ATTRIBUTE_UNUSED = getHeuristicEdgeData(eItr);
assert(ed.isUpToDate && "Edge data is not up to date.");
More information about the llvm-commits
mailing list