[llvm] r318696 - Fix a lld-x86_64-darwin13 build error.

Hiroshi Yamauchi via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 20 13:38:43 PST 2017


Author: yamauchi
Date: Mon Nov 20 13:38:43 2017
New Revision: 318696

URL: http://llvm.org/viewvc/llvm-project?rev=318696&view=rev
Log:
Fix a lld-x86_64-darwin13 build error.

Summary:
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

Reviewers: davidxl

Reviewed By: davidxl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D40266

Modified:
    llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h

Modified: llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h?rev=318696&r1=318695&r2=318696&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h (original)
+++ llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h Mon Nov 20 13:38:43 2017
@@ -1191,8 +1191,7 @@ bool BlockFrequencyInfoImpl<BT>::compute
       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




More information about the llvm-commits mailing list