From e3d3e6ab8c694fbed7e4cbf15a0a587543be7409 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 --- llvm/include/llvm/Bitcode/BitstreamReader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Bitcode/BitstreamReader.h b/llvm/include/llvm/Bitcode/BitstreamReader.h index dfbb5e2..9a8c370 100644 --- a/llvm/include/llvm/Bitcode/BitstreamReader.h +++ b/llvm/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); -- 2.7.4