[llvm-commits] [llvm-gcc-4.2] r80424 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Nick Lewycky
nicholas at mxc.ca
Sat Aug 29 00:23:50 PDT 2009
Author: nicholas
Date: Sat Aug 29 02:23:49 2009
New Revision: 80424
URL: http://llvm.org/viewvc/llvm-project?rev=80424&view=rev
Log:
Fix invalid conversion. Patch by Aaron Gray!
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=80424&r1=80423&r2=80424&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Sat Aug 29 02:23:49 2009
@@ -7124,7 +7124,7 @@
} else if (ElTy == Type::getInt32Ty(Context)) {
assert((Len&3) == 0 &&
"Length in bytes should be a multiple of element size");
- const uint32_t *InStr = (const unsigned *)TREE_STRING_POINTER(exp);
+ const uint32_t *InStr = (const uint32_t *)TREE_STRING_POINTER(exp);
for (unsigned i = 0; i != Len/4; ++i) {
// gcc has constructed the initializer elements in the target endianness,
// but we're going to treat them as ordinary ints from here, with
More information about the llvm-commits
mailing list