mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
fix some warnings when assertions are disabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52587 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8d96144b0e
commit
a1aabe422f
@ -146,7 +146,7 @@ public:
|
|||||||
void RegisterPass(const PassInfo &PI) {
|
void RegisterPass(const PassInfo &PI) {
|
||||||
bool Inserted =
|
bool Inserted =
|
||||||
PassInfoMap.insert(std::make_pair(PI.getTypeInfo(),&PI)).second;
|
PassInfoMap.insert(std::make_pair(PI.getTypeInfo(),&PI)).second;
|
||||||
assert(Inserted && "Pass registered multiple times!");
|
assert(Inserted && "Pass registered multiple times!"); Inserted=Inserted;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UnregisterPass(const PassInfo &PI) {
|
void UnregisterPass(const PassInfo &PI) {
|
||||||
|
@ -901,7 +901,7 @@ public:
|
|||||||
// The old record is now out-of-date, because one of the children has been
|
// The old record is now out-of-date, because one of the children has been
|
||||||
// updated. Remove the obsolete entry from the map.
|
// updated. Remove the obsolete entry from the map.
|
||||||
unsigned NumErased = Map.erase(ValType::get(Ty));
|
unsigned NumErased = Map.erase(ValType::get(Ty));
|
||||||
assert(NumErased && "Element not found!");
|
assert(NumErased && "Element not found!"); NumErased = NumErased;
|
||||||
|
|
||||||
// Remember the structural hash for the type before we start hacking on it,
|
// Remember the structural hash for the type before we start hacking on it,
|
||||||
// in case we need it later.
|
// in case we need it later.
|
||||||
@ -1426,7 +1426,7 @@ void DerivedType::refineAbstractTypeTo(const Type *NewType) {
|
|||||||
while (!AbstractTypeUsers.empty() && NewTy != this) {
|
while (!AbstractTypeUsers.empty() && NewTy != this) {
|
||||||
AbstractTypeUser *User = AbstractTypeUsers.back();
|
AbstractTypeUser *User = AbstractTypeUsers.back();
|
||||||
|
|
||||||
unsigned OldSize = AbstractTypeUsers.size();
|
unsigned OldSize = AbstractTypeUsers.size(); OldSize=OldSize;
|
||||||
#ifdef DEBUG_MERGE_TYPES
|
#ifdef DEBUG_MERGE_TYPES
|
||||||
DOUT << " REFINING user " << OldSize-1 << "[" << (void*)User
|
DOUT << " REFINING user " << OldSize-1 << "[" << (void*)User
|
||||||
<< "] of abstract type [" << (void*)this << " "
|
<< "] of abstract type [" << (void*)this << " "
|
||||||
@ -1453,7 +1453,7 @@ void DerivedType::notifyUsesThatTypeBecameConcrete() {
|
|||||||
DOUT << "typeIsREFINED type: " << (void*)this << " " << *this << "\n";
|
DOUT << "typeIsREFINED type: " << (void*)this << " " << *this << "\n";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
unsigned OldSize = AbstractTypeUsers.size();
|
unsigned OldSize = AbstractTypeUsers.size(); OldSize=OldSize;
|
||||||
while (!AbstractTypeUsers.empty()) {
|
while (!AbstractTypeUsers.empty()) {
|
||||||
AbstractTypeUser *ATU = AbstractTypeUsers.back();
|
AbstractTypeUser *ATU = AbstractTypeUsers.back();
|
||||||
ATU->typeBecameConcrete(this);
|
ATU->typeBecameConcrete(this);
|
||||||
|
@ -264,7 +264,7 @@ void Value::takeName(Value *V) {
|
|||||||
// Get V's ST, this should always succed, because V has a name.
|
// Get V's ST, this should always succed, because V has a name.
|
||||||
ValueSymbolTable *VST;
|
ValueSymbolTable *VST;
|
||||||
bool Failure = getSymTab(V, VST);
|
bool Failure = getSymTab(V, VST);
|
||||||
assert(!Failure && "V has a name, so it should have a ST!");
|
assert(!Failure && "V has a name, so it should have a ST!"); Failure=Failure;
|
||||||
|
|
||||||
// If these values are both in the same symtab, we can do this very fast.
|
// If these values are both in the same symtab, we can do this very fast.
|
||||||
// This works even if both values have no symtab yet.
|
// This works even if both values have no symtab yet.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user