[cfe-dev] Bug in

Daniel Dunbar daniel at zuster.org
Thu Jan 21 09:02:32 PST 2010


I believe this has already been fixed.

 - Daniel

On Thu, Jan 21, 2010 at 8:52 AM, Olaf Krzikalla
<Olaf.Krzikalla at tu-dresden.de> wrote:
> Hi @clang,
>
> there seems to be a bug in InitPreprocessor.h, line 139 rendering the
> release build of MSVC buggy.
> The line
>
>  llvm::Twine DefPrefix = "__" + Prefix + "_";
>
> should read
>
>  llvm::Twine DefPrefixTmp = "__" + Prefix;
>  llvm::Twine DefPrefix = DefPrefixTmp + "_";
>
> otherwise there is a temporary llvm::Twine object used after
> deconstruction. With the change above it works fine.
>
> Best regards
> Olaf
>
>
> PS: sorry for not providing a patch but I'm already late
> (and it took me some time as it only occured in the release build).
>
> --
> Olaf Krzikalla
> Technische Universitaet Dresden
> Zentrum fuer Informationsdienste und Hochleistungsrechnen
> Abteilung Verteiltes und Datenintensives Rechnen
> Zellescher Weg 12, 01069 Dresden
> Willersbau, Zimmer A105
> Telefonnr.: +49 351 463-32442
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>




More information about the cfe-dev mailing list