summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/ProfileSummary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/IR/ProfileSummary.cpp')
-rw-r--r--llvm/lib/IR/ProfileSummary.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/IR/ProfileSummary.cpp b/llvm/lib/IR/ProfileSummary.cpp
index 2b24d125112..c35dfb09440 100644
--- a/llvm/lib/IR/ProfileSummary.cpp
+++ b/llvm/lib/IR/ProfileSummary.cpp
@@ -144,8 +144,6 @@ static bool getSummaryFromMD(MDTuple *MD, SummaryEntryVector &Summary) {
}
ProfileSummary *ProfileSummary::getFromMD(Metadata *MD) {
- if (!MD)
- return nullptr;
if (!isa<MDTuple>(MD))
return nullptr;
MDTuple *Tuple = cast<MDTuple>(MD);
OpenPOWER on IntegriCloud