Merge remote-tracking branch 'origin/swift-3.1-branch' into stable
* origin/swift-3.1-branch:
Fix MSVC unused variable warning.
diff --git a/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp b/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
index 2aa222a..5d7a14d 100644
--- a/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
+++ b/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
@@ -464,10 +464,11 @@
QualType SSizeTy = ACtx.getIntTypeForBitwidth(ACtx.getTypeSize(SizeTy), true);
// Don't worry about truncation here, it'd be cast back to SIZE_MAX when used.
- LLVM_ATTRIBUTE_UNUSED int64_t SizeMax =
+ int64_t SizeMax =
BVF.getMaxValue(SizeTy).getLimitedValue();
int64_t SSizeMax =
BVF.getMaxValue(SSizeTy).getLimitedValue();
+ (void)SizeMax;
// We are finally ready to define specifications for all supported functions.
//