[cfe-dev] Compile errors on Win32

steve naroff snaroff at apple.com
Thu Dec 17 11:52:13 PST 2009


I just made the exact change and it seems to work.

When I finish building/testing, I will commit.

Thanks,

snaroff

On Dec 17, 2009, at 2:48 PM, John Thompson wrote:

> This seems to work:
>
> Index: include/llvm/ADT/SmallVector.h
> ===================================================================
> --- include/llvm/ADT/SmallVector.h (revision 91610)
> +++ include/llvm/ADT/SmallVector.h (working copy)
> @@ -495,15 +495,15 @@
>
>      // Copy over the elements that we're about to overwrite.
>      T *OldEnd = this->end();
> -    setEnd(this->end() + NumToInsert);
> +    this->setEnd(this->end() + NumToInsert);
>      size_t NumOverwritten = OldEnd-I;
> -    uninitialized_copy(I, OldEnd, this->end()-NumOverwritten);
> +    this->uninitialized_copy(I, OldEnd, this->end()-NumOverwritten);
>
>      // Replace the overwritten part.
>      std::copy(From, From+NumOverwritten, I);
>
>      // Insert the non-overwritten middle part.
> -    uninitialized_copy(From+NumOverwritten, To, OldEnd);
> +    this->uninitialized_copy(From+NumOverwritten, To, OldEnd);
>      return I;
>    }
>
> Can somebody fix it and get the win32 build bot going again?
>
> -John
>
> -- 
> John Thompson
> John.Thompson.JTSoftware at gmail.com
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091217/35d70dfc/attachment.html>


More information about the cfe-dev mailing list