[LLVMdev] API design

Jed Davis jdev at panix.com
Mon Jul 2 23:31:03 PDT 2007


Nick Lewycky <nicholas at mxc.ca> writes:

> Hi,
>
> I've been running LLVM with _GLIBCXX_DEBUG (extra checks) turned on to
> see what would happen, and it's been a complete disaster.
>
> The major problem is the use of this API:
>
>   new CallInst(V, &Args[0], Args.size());

Forgive me if I'm missing something, but why is it assumed that
&Args[0] must be a pointer to the entire contents of the vector?

-- 
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l))))))  (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k)))))))    '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))




More information about the llvm-dev mailing list