[llvm] r203084 - Fix break by qualifying ptrdiff_t with std::.

David Blaikie dblaikie at gmail.com
Wed Mar 5 22:13:59 PST 2014


On Wed, Mar 5, 2014 at 10:05 PM, Ahmed Charles <ahmedcharles at gmail.com> wrote:
> Author: ace2001ac
> Date: Thu Mar  6 00:05:26 2014
> New Revision: 203084
>
> URL: http://llvm.org/viewvc/llvm-project?rev=203084&view=rev
> Log:
> Fix break by qualifying ptrdiff_t with std::.

I was just starting to wonder about this one... Thanks!

>
> Modified:
>     llvm/trunk/lib/Support/StreamableMemoryObject.cpp
>
> Modified: llvm/trunk/lib/Support/StreamableMemoryObject.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/StreamableMemoryObject.cpp?rev=203084&r1=203083&r2=203084&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Support/StreamableMemoryObject.cpp (original)
> +++ llvm/trunk/lib/Support/StreamableMemoryObject.cpp Thu Mar  6 00:05:26 2014
> @@ -48,10 +48,10 @@ private:
>    // These are implemented as inline functions here to avoid multiple virtual
>    // calls per public function
>    bool validAddress(uint64_t address) const {
> -    return static_cast<ptrdiff_t>(address) < LastChar - FirstChar;
> +    return static_cast<std::ptrdiff_t>(address) < LastChar - FirstChar;
>    }
>    bool objectEnd(uint64_t address) const {
> -    return static_cast<ptrdiff_t>(address) == LastChar - FirstChar;
> +    return static_cast<std::ptrdiff_t>(address) == LastChar - FirstChar;
>    }
>
>    RawMemoryObject(const RawMemoryObject&) LLVM_DELETED_FUNCTION;
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list