[llvm] 192a3b3 - [support][ci] Fix modular build on GreenDragon

Jan Svoboda via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 20 07:56:30 PDT 2022


Author: Jan Svoboda
Date: 2022-06-20T16:56:20+02:00
New Revision: 192a3b33f9e7031511dcafc903e7891c00aba2a4

URL: https://github.com/llvm/llvm-project/commit/192a3b33f9e7031511dcafc903e7891c00aba2a4
DIFF: https://github.com/llvm/llvm-project/commit/192a3b33f9e7031511dcafc903e7891c00aba2a4.diff

LOG: [support][ci] Fix modular build on GreenDragon

This is to fix the following error on https://green.lab.llvm.org/green/job/clang-stage2-Rthinlto:
BranchProbability.h:236:34: error: declaration of 'distance' must be imported from module 'std.iterator.__iterator.distance' before it is required

Added: 
    

Modified: 
    llvm/include/llvm/Support/BranchProbability.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/BranchProbability.h b/llvm/include/llvm/Support/BranchProbability.h
index 6f071c15421f..79d70cf611d4 100644
--- a/llvm/include/llvm/Support/BranchProbability.h
+++ b/llvm/include/llvm/Support/BranchProbability.h
@@ -16,6 +16,7 @@
 #include "llvm/Support/DataTypes.h"
 #include <algorithm>
 #include <cassert>
+#include <iterator>
 #include <numeric>
 
 namespace llvm {


        


More information about the llvm-commits mailing list