[llvm-commits] Fix PR 1008
Devang Patel
dpatel at apple.com
Fri Nov 17 11:33:44 PST 2006
Fix cut-n-pasto. Fix PR 1008.
Thanks Chris!
-
Devang
Index: llvm-convert.cpp
===================================================================
--- llvm-convert.cpp (revision 119923)
+++ llvm-convert.cpp (working copy)
@@ -4135,7 +4135,7 @@ Constant *TreeConstantToLLVM::ConvertSTR
const signed short *InStr = (const signed short
*)TREE_STRING_POINTER(exp);
for (unsigned i = 0; i != Len; ++i)
Elts.push_back(ConstantInt::get(Type::ShortTy, InStr[i]));
- } else if (ElTy == Type::UByteTy) {
+ } else if (ElTy == Type::UShortTy) {
const unsigned short *InStr =
(const unsigned short *)TREE_STRING_POINTER(exp);
for (unsigned i = 0; i != Len; ++i)
More information about the llvm-commits
mailing list