forked from OSchip/llvm-project
Persuade GCC that there is nothing worth warning about here (there isn't).
llvm-svn: 149834
This commit is contained in:
parent
efabc2572f
commit
ae22c60f90
|
@ -127,7 +127,7 @@ AliasAnalysis::AliasResult
|
||||||
AliasAnalysisCounter::alias(const Location &LocA, const Location &LocB) {
|
AliasAnalysisCounter::alias(const Location &LocA, const Location &LocB) {
|
||||||
AliasResult R = getAnalysis<AliasAnalysis>().alias(LocA, LocB);
|
AliasResult R = getAnalysis<AliasAnalysis>().alias(LocA, LocB);
|
||||||
|
|
||||||
const char *AliasString;
|
const char *AliasString = 0;
|
||||||
switch (R) {
|
switch (R) {
|
||||||
case NoAlias: No++; AliasString = "No alias"; break;
|
case NoAlias: No++; AliasString = "No alias"; break;
|
||||||
case MayAlias: May++; AliasString = "May alias"; break;
|
case MayAlias: May++; AliasString = "May alias"; break;
|
||||||
|
@ -153,7 +153,7 @@ AliasAnalysisCounter::getModRefInfo(ImmutableCallSite CS,
|
||||||
const Location &Loc) {
|
const Location &Loc) {
|
||||||
ModRefResult R = getAnalysis<AliasAnalysis>().getModRefInfo(CS, Loc);
|
ModRefResult R = getAnalysis<AliasAnalysis>().getModRefInfo(CS, Loc);
|
||||||
|
|
||||||
const char *MRString;
|
const char *MRString = 0;
|
||||||
switch (R) {
|
switch (R) {
|
||||||
case NoModRef: NoMR++; MRString = "NoModRef"; break;
|
case NoModRef: NoMR++; MRString = "NoModRef"; break;
|
||||||
case Ref: JustRef++; MRString = "JustRef"; break;
|
case Ref: JustRef++; MRString = "JustRef"; break;
|
||||||
|
|
|
@ -255,6 +255,7 @@ bool MachineCSE::PhysRegDefsReach(MachineInstr *CSMI, MachineInstr *MI,
|
||||||
|
|
||||||
if (I == EE) {
|
if (I == EE) {
|
||||||
assert(CrossMBB && "Reaching end-of-MBB without finding MI?");
|
assert(CrossMBB && "Reaching end-of-MBB without finding MI?");
|
||||||
|
(void)CrossMBB;
|
||||||
CrossMBB = false;
|
CrossMBB = false;
|
||||||
NonLocal = true;
|
NonLocal = true;
|
||||||
I = MBB->begin();
|
I = MBB->begin();
|
||||||
|
|
|
@ -51,7 +51,7 @@ MutexImpl::MutexImpl( bool recursive)
|
||||||
|
|
||||||
// Initialize the mutex attributes
|
// Initialize the mutex attributes
|
||||||
int errorcode = pthread_mutexattr_init(&attr);
|
int errorcode = pthread_mutexattr_init(&attr);
|
||||||
assert(errorcode == 0);
|
assert(errorcode == 0); (void)errorcode;
|
||||||
|
|
||||||
// Initialize the mutex as a recursive mutex, if requested, or normal
|
// Initialize the mutex as a recursive mutex, if requested, or normal
|
||||||
// otherwise.
|
// otherwise.
|
||||||
|
|
|
@ -2279,6 +2279,7 @@ bool ARMFastISel::ARMTryEmitSmallMemCpy(Address Dest, Address Src, uint64_t Len)
|
||||||
assert (RV == true && "Should be able to handle this load.");
|
assert (RV == true && "Should be able to handle this load.");
|
||||||
RV = ARMEmitStore(VT, ResultReg, Dest);
|
RV = ARMEmitStore(VT, ResultReg, Dest);
|
||||||
assert (RV == true && "Should be able to handle this store.");
|
assert (RV == true && "Should be able to handle this store.");
|
||||||
|
(void)RV;
|
||||||
|
|
||||||
unsigned Size = VT.getSizeInBits()/8;
|
unsigned Size = VT.getSizeInBits()/8;
|
||||||
Len -= Size;
|
Len -= Size;
|
||||||
|
|
|
@ -103,7 +103,7 @@ static InstrUID decode(OpcodeType type,
|
||||||
InstructionContext insnContext,
|
InstructionContext insnContext,
|
||||||
uint8_t opcode,
|
uint8_t opcode,
|
||||||
uint8_t modRM) {
|
uint8_t modRM) {
|
||||||
const struct ModRMDecision* dec;
|
const struct ModRMDecision* dec = 0;
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case ONEBYTE:
|
case ONEBYTE:
|
||||||
|
|
|
@ -8288,7 +8288,7 @@ SDValue X86TargetLowering::LowerVSETCC(SDValue Op, SelectionDAG &DAG) const {
|
||||||
if (isFP) {
|
if (isFP) {
|
||||||
unsigned SSECC = 8;
|
unsigned SSECC = 8;
|
||||||
EVT EltVT = Op0.getValueType().getVectorElementType();
|
EVT EltVT = Op0.getValueType().getVectorElementType();
|
||||||
assert(EltVT == MVT::f32 || EltVT == MVT::f64);
|
assert(EltVT == MVT::f32 || EltVT == MVT::f64); (void)EltVT;
|
||||||
|
|
||||||
bool Swap = false;
|
bool Swap = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue