diff options
| -rw-r--r-- | llvm/include/llvm/ProfileData/InstrProfReader.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/ProfileData/InstrProfReader.h b/llvm/include/llvm/ProfileData/InstrProfReader.h index 5b0c6257a63..18a7e43437a 100644 --- a/llvm/include/llvm/ProfileData/InstrProfReader.h +++ b/llvm/include/llvm/ProfileData/InstrProfReader.h @@ -222,8 +222,9 @@ public: static std::pair<offset_type, offset_type> ReadKeyDataLength(const unsigned char *&D) { using namespace support; - return std::make_pair(endian::readNext<offset_type, little, unaligned>(D), - endian::readNext<offset_type, little, unaligned>(D)); + offset_type KeyLen = endian::readNext<offset_type, little, unaligned>(D); + offset_type DataLen = endian::readNext<offset_type, little, unaligned>(D); + return std::make_pair(KeyLen, DataLen); } StringRef ReadKey(const unsigned char *D, unsigned N) { |

