[llvm] r191062 - Unbreak Clang build after r191050: don't pass a StringRef to snprintf.

Jim Grosbach grosbach at apple.com
Fri Sep 20 09:35:58 PDT 2013


Thanks, Richard!

-Jim

On Sep 19, 2013, at 5:38 PM, Richard Smith <richard-llvm at metafoo.co.uk> wrote:

> Author: rsmith
> Date: Thu Sep 19 19:38:18 2013
> New Revision: 191062
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=191062&view=rev
> Log:
> Unbreak Clang build after r191050: don't pass a StringRef to snprintf.
> 
> Modified:
>    llvm/trunk/lib/DebugInfo/DWARFContext.cpp
> 
> Modified: llvm/trunk/lib/DebugInfo/DWARFContext.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFContext.cpp?rev=191062&r1=191061&r2=191062&view=diff
> ==============================================================================
> --- llvm/trunk/lib/DebugInfo/DWARFContext.cpp (original)
> +++ llvm/trunk/lib/DebugInfo/DWARFContext.cpp Thu Sep 19 19:38:18 2013
> @@ -135,8 +135,9 @@ void DWARFContext::dump(raw_ostream &OS,
>         break;
>       PubIndexEntryDescriptor desc(pubNames.getU8(&offset));
>       OS << format("0x%8.8x ", dieRef)
> -         << format("%-8s", dwarf::GDBIndexEntryLinkageString(desc.Linkage))
> -         << ' ' << dwarf::GDBIndexEntryKindString(desc.Kind) << " \""
> +         << format("%-8s", dwarf::GDBIndexEntryLinkageString(desc.Linkage)
> +                               .str().c_str()) << ' '
> +         << dwarf::GDBIndexEntryKindString(desc.Kind) << " \""
>          << pubNames.getCStr(&offset) << "\"\n";
>     }
>   }
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list