llvm.org GIT mirror llvm / 54f6163
Fix some GCC warnings by providing a virtual destructor in the base of a class hierarchy with virtual methods and using llvm_unreachable to properly indicate unreachable states which would otherwise leave variables uninitialized. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111803 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 9 years ago
2 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
13261326 break;
13271327 case ISD::SEXTLOAD: ExtendOp = ISD::SIGN_EXTEND; break;
13281328 case ISD::ZEXTLOAD: ExtendOp = ISD::ZERO_EXTEND; break;
1329 default: assert(0 && "Unexpected extend load type!");
1329 default: llvm_unreachable("Unexpected extend load type!");
13301330 }
13311331 Result = DAG.getNode(ExtendOp, dl, Node->getValueType(0), Load);
13321332 Tmp1 = LegalizeOp(Result); // Relegalize new nodes.
7070 upperName[0] = std::toupper(upperName[0]);
7171 }
7272 }
73 virtual ~Argument() {}
7374
7475 StringRef getLowerName() const { return lowerName; }
7576 StringRef getUpperName() const { return upperName; }