llvm.org GIT mirror llvm / 133fe75
Disabling a spurious deprecation warning about using PathV1 from within the PathV1 implementation file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158274 91177308-0d34-0410-b5e6-96231b3b80d8 Aaron Ballman 8 years ago
1 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
188188 Path
189189 Path::GetTemporaryDirectory(std::string* ErrMsg) {
190190 if (TempDirectory) {
191 #if defined(_MSC_VER)
192 // Visual Studio gets confused and emits a diagnostic about calling exists,
193 // even though this is the implementation for PathV1. Temporarily
194 // disable the deprecated warning message
195 #pragma warning(push)
196 #pragma warning(disable:4996)
197 #endif
191198 assert(TempDirectory->exists() && "Who has removed TempDirectory?");
199 #if defined(_MSC_VER)
200 #pragma warning(pop)
201 #endif
192202 return *TempDirectory;
193203 }
194204