[PATCH] D40266: Fix a lld-x86_64-darwin13 build error.
Hiroshi Yamauchi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 20 13:27:11 PST 2017
yamauchi created this revision.
Fix this build error
http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/15112/steps/build_Lld/logs/stdio
after https://reviews.llvm.org/rL318693
https://reviews.llvm.org/D40266
Files:
include/llvm/Analysis/BlockFrequencyInfoImpl.h
Index: include/llvm/Analysis/BlockFrequencyInfoImpl.h
===================================================================
--- include/llvm/Analysis/BlockFrequencyInfoImpl.h
+++ include/llvm/Analysis/BlockFrequencyInfoImpl.h
@@ -1191,8 +1191,7 @@
MinHeaderWeight = 1;
for (uint32_t H : HeadersWithoutWeight) {
auto &HeaderNode = Loop.Nodes[H];
- const BlockT *Block = getBlock(HeaderNode);
- assert(!Block->getIrrLoopHeaderWeight() &&
+ assert(!getBlock(HeaderNode)->getIrrLoopHeaderWeight() &&
"Shouldn't have a weight metadata");
uint64_t MinWeight = MinHeaderWeight.getValue();
DEBUG(dbgs() << "Giving weight " << MinWeight
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40266.123647.patch
Type: text/x-patch
Size: 688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171120/997fcef7/attachment.bin>
More information about the llvm-commits
mailing list