diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-03-02 02:56:29 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-03-02 02:56:29 +0000 |
commit | 6b017a11ba4ae6547a975a6b8343dfe3fdb5b5b1 (patch) | |
tree | 655fc9598870ac3a1d1c1a02732576ecc6291123 /llvm/lib/Analysis/ScalarEvolution.cpp | |
parent | eca1b53b95c1172c26c00a1595896ad4966f6251 (diff) | |
download | bcm5719-llvm-6b017a11ba4ae6547a975a6b8343dfe3fdb5b5b1.tar.gz bcm5719-llvm-6b017a11ba4ae6547a975a6b8343dfe3fdb5b5b1.zip |
Add a comment with a rational for the unusual code structure
llvm-svn: 262454
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 489c43680e4..f55fcfe2dc5 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -4577,6 +4577,9 @@ ConstantRange ScalarEvolution::getRangeViaFactoring(const SCEV *Start, // from deep in the call stack, and calling getSCEV (on a sext instruction, // say) can end up caching a suboptimal value. + // FIXME: without the explicit `this` receiver below, MSVC errors out with + // C2352 and C2512 (otherwise it isn't needed). + const SCEV *TrueStart = this->getConstant(*StartPattern.TrueValue + Offset); const SCEV *TrueStep = this->getConstant(*StepPattern.TrueValue); const SCEV *FalseStart = this->getConstant(*StartPattern.FalseValue + Offset); |