From: Chris Lattner Date: Sun, 10 Feb 2013 05:45:34 +0000 (+0000) Subject: attempt to defeat a gcc warning that is breaking a -Werror buildbot. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=bf8f4cb0d5edc30854be46ec394d267b0c6013cd;p=oota-llvm.git attempt to defeat a gcc warning that is breaking a -Werror buildbot. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174825 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Bitcode/BitstreamReader.h b/include/llvm/Bitcode/BitstreamReader.h index dfbb5e2a659..9a8c370f004 100644 --- a/include/llvm/Bitcode/BitstreamReader.h +++ b/include/llvm/Bitcode/BitstreamReader.h @@ -369,7 +369,7 @@ public: typedef support::detail::packed_endian_specific_integral Endian_T; - CurWord = *reinterpret_cast(buf); + CurWord = *(Endian_T*)(void*)buf; NextChar += sizeof(word_t);