From 2f0d5c44369fbea06f2f4983c78e74e1d7ecd63f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 10 Feb 2013 05:45:34 +0000 Subject: [PATCH] attempt to defeat a gcc warning that is breaking a -Werror buildbot. llvm-svn: 174825 --- include/llvm/Bitcode/BitstreamReader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);