summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-08-23 08:25:07 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-08-23 08:25:07 +0000
commit191c4f73b201ded25020a14473441de5b3fb538a (patch)
treebc4c1d8670c50a3081de6330ee52671485da1fc0 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parentc9262401729824caa25001e341832d689596023a (diff)
downloadbcm5719-llvm-191c4f73b201ded25020a14473441de5b3fb538a.tar.gz
bcm5719-llvm-191c4f73b201ded25020a14473441de5b3fb538a.zip
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. llvm-svn: 111803
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index c9ad3ca5bf6..5f555934bae 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1327,7 +1327,7 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
break;
case ISD::SEXTLOAD: ExtendOp = ISD::SIGN_EXTEND; break;
case ISD::ZEXTLOAD: ExtendOp = ISD::ZERO_EXTEND; break;
- default: assert(0 && "Unexpected extend load type!");
+ default: llvm_unreachable("Unexpected extend load type!");
}
Result = DAG.getNode(ExtendOp, dl, Node->getValueType(0), Load);
Tmp1 = LegalizeOp(Result); // Relegalize new nodes.
OpenPOWER on IntegriCloud