[LLVMdev] Fix for non-standard variable length array
Paolo Invernizzi
arathorn at fastwebnet.it
Mon Oct 18 07:13:55 PDT 2004
I submitted a patch with a std::vector, but was commited as alloca ;-P
---
P
On Oct 18, 2004, at 4:04 PM, Morten Ofstad wrote:
>> There was a similar problem some time ago, and was resolved with
>> alloca. I think it's a better solution to use the stack instead of
>> the heap...
>
> Actually, I looked into this and alloca is not standard C++ since it
> can create problems for the exception handling (although it compiles
> fine with Visual C). This is probably why there have been compilation
> problems on some platforms (see
> http://mail.cs.uiuc.edu/pipermail/llvmdev/2004-September/001992.html)
> -- A better alternative is maybe to use the std::vector instead of a
> VLA.
>
> m.
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list