Displaying 3 results from an estimated 3 matches for "b7b6cecd".
2009 Aug 21
0
[LLVMdev] GEP instruction change
On Fri, Aug 21, 2009 at 2:02 AM, Artur Pietrek<pietreka at gmail.com> wrote:
> Hi All,
> Since few days I observe weird change.
> Consider the following C code
>
> char array[] = "0123456789";
> extern int test(char arr[], int size);
>
> int main(void) {
> return test(array-1, sizeof(array)-1);
> }
>
> using clang frontend i get this:
>
>
2009 Aug 21
1
[LLVMdev] GEP instruction change
...backend - it simply triggers
> > pointer overflow assertion.
>
> Sorry, I don't know anything about the MSIL backend.
>
> -Eli
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090821/b7b6cecd/attachment.html>
2009 Aug 21
3
[LLVMdev] GEP instruction change
Hi All,
Since few days I observe weird change.
Consider the following C code
char array[] = "0123456789";
extern int test(char arr[], int size);
int main(void) {
return test(array-1, sizeof(array)-1);
}
using clang frontend i get this:
%call = call i32 @test(i8* getelementptr inbounds ([11 x i8]* @array, i32 0,
i32 -1), i32 10) ; <i32> [#uses=1]
and using LLVM-GCC this:
%1 =