From c43782cf7163805fb6d727382b5f807ea035b2b0 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 8 Aug 2009 18:59:03 +0000 Subject: Some ProfileInfo cleanups. - Part of optimal static profiling patch sequence by Andreas Neustifter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78485 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/ProfileInfo.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Analysis/ProfileInfo.cpp') diff --git a/lib/Analysis/ProfileInfo.cpp b/lib/Analysis/ProfileInfo.cpp index 670d4e7379..2ed466bf32 100644 --- a/lib/Analysis/ProfileInfo.cpp +++ b/lib/Analysis/ProfileInfo.cpp @@ -64,6 +64,7 @@ double ProfileInfo::getExecutionCount(const BasicBlock *BB) { } double ProfileInfo::getExecutionCount(const Function *F) { + if (F->isDeclaration()) return MissingValue; std::map::iterator J = FunctionInformation.find(F); if (J != FunctionInformation.end()) -- cgit v1.2.3-18-g5258