diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index ed58c1836908..881784d08c5d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -617,6 +617,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { Args.push_back(std::make_pair(Tmp4, IntPtrTy)); FnName = Node->getOpcode() == ISD::MEMMOVE ? "memmove" : "memcpy"; } else { + FnName = 0; assert(0 && "Unknown op!"); } std::pair CallResult =