diff options
Diffstat (limited to 'llvm/lib/Transforms/IPO/SampleProfile.cpp')
| -rw-r--r-- | llvm/lib/Transforms/IPO/SampleProfile.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/llvm/lib/Transforms/IPO/SampleProfile.cpp b/llvm/lib/Transforms/IPO/SampleProfile.cpp index eb4ddfd179b..d0cf63b35f4 100644 --- a/llvm/lib/Transforms/IPO/SampleProfile.cpp +++ b/llvm/lib/Transforms/IPO/SampleProfile.cpp @@ -72,6 +72,7 @@  #include "llvm/Transforms/Instrumentation.h"  #include "llvm/Transforms/Utils/CallPromotionUtils.h"  #include "llvm/Transforms/Utils/Cloning.h" +#include "llvm/Transforms/Utils/MisExpect.h"  #include <algorithm>  #include <cassert>  #include <cstdint> @@ -1446,6 +1447,8 @@ void SampleProfileLoader::propagateWeights(Function &F) {        }      } +    misexpect::verifyMisExpect(TI, Weights, TI->getContext()); +      uint64_t TempWeight;      // Only set weights if there is at least one non-zero weight.      // In any other case, let the analyzer set weights. | 

