[cfe-commits] r134863 - in /cfe/trunk: lib/CodeGen/CodeGenTypes.cpp lib/CodeGen/CodeGenTypes.h test/CodeGenCXX/anonymous-union-member-initializer.cpp test/CodeGenObjC/arc-foreach.m test/CodeGenObjC/arc.m

Francois Pichet pichet2000 at gmail.com
Sun Jul 10 05:39:36 PDT 2011


On Sun, Jul 10, 2011 at 1:39 AM, Chris Lattner <sabre at nondot.org> wrote:
> Author: lattner
> Date: Sun Jul 10 00:39:13 2011
> New Revision: 134863
>
> URL: http://llvm.org/viewvc/llvm-project?rev=134863&view=rev
> Log:
> keep track of whether being in a RS_StructPointer state
> caused us to skip layout out a function accurately.  If
> so, flush the type cache for both the function and struct
> case to ensure that any pointers to the functions get
> recomputed.  This is overconservative, but with this patch
> clang can build itself again.
>
>
> Modified:
>    cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
>    cfe/trunk/lib/CodeGen/CodeGenTypes.h
>    cfe/trunk/test/CodeGenCXX/anonymous-union-member-initializer.cpp
>    cfe/trunk/test/CodeGenObjC/arc-foreach.m
>    cfe/trunk/test/CodeGenObjC/arc.m
>

This fails under MSVC:


3>  Command 1: "FileCheck"
"C:\dev\llvm\llvm_trunk2\tools\clang\test\CodeGenCXX\anonymous-union-member-initializer.cpp"
3>  Command 1 Result: 1
3>  Command 1 Output:
3>
3>
3>  Command 1 Stderr:
3>  C:\dev\llvm\llvm_trunk2\tools\clang\test\CodeGenCXX\anonymous-union-member-initializer.cpp:89:12:
error: expected string not found in input
3>   // CHECK: store {{.*}}* null, {{.*}}** [[CALLBACK]]
3>             ^
3>  <stdin>:102:2: note: scanning from here
3>   %6 = bitcast {}** %5 to void (i8*)**
3>   ^
3>  <stdin>:102:2: note: with variable "CALLBACK" equal to "%5"
3>  <stdin>:145:2: note: possible intended match here
3>   store i32* null, i32** %4, align 8
3>   ^




More information about the cfe-commits mailing list