[LLVMdev] Public SmallVectorImpl constructor?

David Blaikie dblaikie at gmail.com
Fri Jan 20 08:17:34 PST 2012


I've had the same thought but never got around to trying to implement it.
Does everything compile for you if it's protected? If so, then a patch
would probably be happily accepted
------------------------------
From: Vane, Edwin
Sent: 1/20/2012 7:13 AM
To: llvmdev at cs.uiuc.edu
Subject: [LLVMdev] Public SmallVectorImpl constructor?

    Hi all,



Just finished debugging a memory clobbering bug resulting from using
SmallVectorImpl directly without realizing this is a bad idea (aside: I was
using it directly because llvm::sys::path::append()’s first argument is a
SmallVectorImpl<char>). A note in the docs about not using SmallVectorImpl
directly would be nice but could we go further and make SmallVectorImpl’s
constructors not public? Is there a  reason why they’re public right now?



--

Edwin Vane

  Software Developer

  SSG/DPD/ECDL/ArBB

  Phone: +1 519 772 2567

  iNET: 87722567
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120120/401b8f99/attachment.html>


More information about the llvm-dev mailing list