X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FSupport%2FLEB128.h;h=6a95432ca2d93c69dd5c89e5186844d75d8f3b81;hb=4ca606f22fe311dc20828242d3961cbafa040343;hp=9e229fbf9cf8d0d14e16c020e9a93ec8bd1704de;hpb=9885a59108ea44a71fd6e7cbeb516072c5cad362;p=oota-llvm.git diff --git a/include/llvm/Support/LEB128.h b/include/llvm/Support/LEB128.h index 9e229fbf9cf..6a95432ca2d 100644 --- a/include/llvm/Support/LEB128.h +++ b/include/llvm/Support/LEB128.h @@ -103,7 +103,7 @@ inline int64_t decodeSLEB128(const uint8_t *p, unsigned *n = nullptr) { } while (Byte >= 128); // Sign extend negative numbers. if (Byte & 0x40) - Value |= (-1LL) << Shift; + Value |= (-1ULL) << Shift; if (n) *n = (unsigned)(p - orig_p); return Value;