[cfe-dev] Adding support for Cloning in the AST
moataz ragab
mtzrgb at gmail.com
Sun May 17 07:40:21 PDT 2009
Sabastian,
You get different result than what I get. I get the debug message of the
base class printed but not of the ImplicitCastExpr debug messages.
>> "calling the base class clone for the following: ImplicitCastExpr"
this confirms that it is not the code. it is something else.
Can you tell me which reversion you are using for llvm & Clang
I am using llvm & Clang reversion 71770. and gcc 4.3.2 20081105 (Red Hat
4.3.2-7)
What do you think the reason for this different output? How can I debug
this?
Thanks,
Moataz
On Sun, May 17, 2009 at 11:22 AM, Sebastian Redl <
sebastian.redl at getdesigned.at> wrote:
> moataz ragab wrote:
> > Hi Sebastian,
> >
> > Thanks.
> >
> > Attached 3 files: the patch "clone.diff". should be applied on the
> > clang directory.
> > RewriteLoopUnroll.cpp you have to put it in
> > the clang-cc directory.
> > test2.c: simple testcase for a forloop with
> > array access in the body.
> >
> >
> > you can invoke the loopunroller using:
> >
> > ../../../../Debug/bin/clang-cc -loop-unroll tests/test2.c
> >
> > Currently it crashes because ImplicitCastExpr object doesn't get
> > cloned. The Stmt base class gets called instead of ImplicitCastExpr
> It calls ImplicitCastExpr::Clone just fine. It crashes because it can't
> clone the VarDecl.
>
> Sebastian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090517/8438770f/attachment.html>
More information about the cfe-dev
mailing list