diff options
| author | Xinliang David Li <davidxl@google.com> | 2015-11-05 05:45:06 +0000 | 
|---|---|---|
| committer | Xinliang David Li <davidxl@google.com> | 2015-11-05 05:45:06 +0000 | 
| commit | 1084a94bf4e81c6fb74f84debc557249b0935744 (patch) | |
| tree | 0c0c778f19831a3e298839a183072354c7e40ebf | |
| parent | 5b22dfa65d5c98102f12bf2e6ad7392315930fad (diff) | |
| download | bcm5719-llvm-1084a94bf4e81c6fb74f84debc557249b0935744.tar.gz bcm5719-llvm-1084a94bf4e81c6fb74f84debc557249b0935744.zip  | |
Fix a bug exposed by uses in CFE
llvm-svn: 252146
| -rw-r--r-- | llvm/include/llvm/ProfileData/InstrProfData.inc | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/ProfileData/InstrProfData.inc b/llvm/include/llvm/ProfileData/InstrProfData.inc index 58ce39ad83a..0747ada40ae 100644 --- a/llvm/include/llvm/ProfileData/InstrProfData.inc +++ b/llvm/include/llvm/ProfileData/InstrProfData.inc @@ -72,9 +72,11 @@ COVMAP_FUNC_RECORD(const IntPtrT, llvm::Type::getInt8PtrTy(Ctx), \                     NamePtr, llvm::ConstantExpr::getBitCast(NamePtr, \                     llvm::Type::getInt8PtrTy(Ctx)))   COVMAP_FUNC_RECORD(const uint32_t, llvm::Type::getInt32Ty(Ctx), NameSize, \ -                   llvm::ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NameSize)) +                   llvm::ConstantInt::get(llvm::Type::getInt32Ty(Ctx),\ +                   NameValue.size()))  COVMAP_FUNC_RECORD(const uint32_t, llvm::Type::getInt32Ty(Ctx), DataSize, \ -                   llvm::ConstantInt::get(llvm::getInt32Ty(Ctx), DataSize)) +                   llvm::ConstantInt::get(llvm::Type::getInt32Ty(Ctx),\ +                   CoverageMapping.size()))  COVMAP_FUNC_RECORD(const uint64_t, llvm::Type::getInt64Ty(Ctx), FuncHash, \                     llvm::ConstantInt::get(llvm::Type::getInt64Ty(Ctx), FuncHash))  // COVMAP_FUNC_RECORD_END  | 

