mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 21:34:23 +00:00
Fix warning & release build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4648 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1fa48e9d32
commit
bf10f05bf7
@ -245,7 +245,7 @@ bool DSNode::mergeTypeInfo(const Type *NewTy, unsigned Offset) {
|
||||
unsigned SubTypeSize = SubType->isSized() ? TD.getTypeSize(SubType) : 0;
|
||||
while (SubType != NewTy) {
|
||||
const Type *NextSubType = 0;
|
||||
unsigned NextSubTypeSize;
|
||||
unsigned NextSubTypeSize = 0;
|
||||
switch (SubType->getPrimitiveID()) {
|
||||
case Type::StructTyID:
|
||||
NextSubType = cast<StructType>(SubType)->getElementTypes()[0];
|
||||
@ -514,11 +514,9 @@ DSGraph::~DSGraph() {
|
||||
ScalarMap.clear();
|
||||
RetNode.setNode(0);
|
||||
|
||||
#ifndef NDEBUG
|
||||
// Drop all intra-node references, so that assertions don't fail...
|
||||
std::for_each(Nodes.begin(), Nodes.end(),
|
||||
std::mem_fun(&DSNode::dropAllReferences));
|
||||
#endif
|
||||
|
||||
// Delete all of the nodes themselves...
|
||||
std::for_each(Nodes.begin(), Nodes.end(), deleter<DSNode>);
|
||||
|
Loading…
x
Reference in New Issue
Block a user