X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FSupport%2FGCOV.h;h=e552315f4558ca700da6f6de15dd7a7af05fea8d;hb=652b28dbcac156bb6a3b596bdf29aaf17e89eda5;hp=45d5fa042574dd945ecd4f4642690c978d071e01;hpb=e4fb6eae9997e80bfedb251ca3251cbed884d4ff;p=oota-llvm.git diff --git a/include/llvm/Support/GCOV.h b/include/llvm/Support/GCOV.h index 45d5fa04257..e552315f455 100644 --- a/include/llvm/Support/GCOV.h +++ b/include/llvm/Support/GCOV.h @@ -130,7 +130,7 @@ public: StringRef Str = Buffer->getBuffer().slice(Cursor, Cursor+4); assert (Str.empty() == false && "Unexpected memory buffer end!"); Cursor += 4; - Result = *(uint32_t *)(Str.data()); + Result = *(const uint32_t *)(Str.data()); return Result; }