diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index ad7b5c3ffe3..cf29b5a1047 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1141,7 +1141,7 @@ void AssemblyWriter::printFunction(const Function *F) { const FunctionType *FT = F->getFunctionType(); const PAListPtr &Attrs = F->getParamAttrs(); printType(F->getReturnType()) << ' '; - if (!F->getName().empty()) + if (F->hasName()) PrintLLVMName(Out, F); else Out << "@\"\"";