[llvm-commits] Two patches: some VStudio compiler errors and an interpreter multi-use crash

Chuck Rose III cfr at adobe.com
Wed Jul 25 11:21:47 PDT 2007

The "lib.patch" is for the lib directory & the "utils.patch" for the
utils directory.


Lib.patch contains 1 VStudio compiler error fix and also a move into a
managed static of one of the statics for the interpreter.  In cases
where programs are compiled in a loop, interpreted, and then discarded,
the current interpreter will crash as the static will contain pointers
to discarded Function* values.


The compiler error's I'm seeing come from VStudio's unwillingness to
accept code of this form:


            for (unsigned index = 0 ; ....)



                        unsigned index = whatever; // this one to
eclipse the loop control index for the purposes of the loop interior




I fixed this by renaming one of the two variables so that it wouldn't
clash.  In case in LoopUnswitch, I changed the name of the interior


The utils.patch contains another compiler error fix of the same type as
above.  In RegisterInfoEmitter, I changed the name of the outside index.
I tried to pick reasonable names in keeping with the prevailing style of
the functions in question, but would love if the main dev for those
areas can ensure that's the case.


Please include my email address on the "to"-line for any questions about
this patch.  I'm currently subscribed to the commit alias in digest




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070725/56cc8147/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lib.patch
Type: application/octet-stream
Size: 2456 bytes
Desc: lib.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070725/56cc8147/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utils.patch
Type: application/octet-stream
Size: 645 bytes
Desc: utils.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070725/56cc8147/attachment-0001.obj>

More information about the llvm-commits mailing list