Bug in

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug in

Olaf Krzikalla
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
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: [cfe-dev] Bug in

Daniel Dunbar
I believe this has already been fixed.

 - Daniel

On Thu, Jan 21, 2010 at 8:52 AM, Olaf Krzikalla
<[hidden email]> 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
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev