[llvm] r174825 - attempt to defeat a gcc warning that is breaking a -Werror buildbot.
Chris Lattner
sabre at nondot.org
Sat Feb 9 21:45:35 PST 2013
Author: lattner
Date: Sat Feb 9 23:45:34 2013
New Revision: 174825
URL: http://llvm.org/viewvc/llvm-project?rev=174825&view=rev
Log:
attempt to defeat a gcc warning that is breaking a -Werror buildbot.
Modified:
llvm/trunk/include/llvm/Bitcode/BitstreamReader.h
Modified: llvm/trunk/include/llvm/Bitcode/BitstreamReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/BitstreamReader.h?rev=174825&r1=174824&r2=174825&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/BitstreamReader.h (original)
+++ llvm/trunk/include/llvm/Bitcode/BitstreamReader.h Sat Feb 9 23:45:34 2013
@@ -369,7 +369,7 @@ public:
typedef support::detail::packed_endian_specific_integral
<word_t, support::little, support::unaligned> Endian_T;
- CurWord = *reinterpret_cast<Endian_T*>(buf);
+ CurWord = *(Endian_T*)(void*)buf;
NextChar += sizeof(word_t);
More information about the llvm-commits
mailing list