[llvm] r252146 - Fix a bug exposed by uses in CFE

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 4 21:45:07 PST 2015


Author: davidxl
Date: Wed Nov  4 23:45:06 2015
New Revision: 252146

URL: http://llvm.org/viewvc/llvm-project?rev=252146&view=rev
Log:
Fix a bug exposed by uses in CFE

Modified:
    llvm/trunk/include/llvm/ProfileData/InstrProfData.inc

Modified: llvm/trunk/include/llvm/ProfileData/InstrProfData.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ProfileData/InstrProfData.inc?rev=252146&r1=252145&r2=252146&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ProfileData/InstrProfData.inc (original)
+++ llvm/trunk/include/llvm/ProfileData/InstrProfData.inc Wed Nov  4 23:45:06 2015
@@ -72,9 +72,11 @@ COVMAP_FUNC_RECORD(const IntPtrT, llvm::
                    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




More information about the llvm-commits mailing list