summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2012-06-09 13:59:29 +0000
committerAaron Ballman <aaron@aaronballman.com>2012-06-09 13:59:29 +0000
commit36a978cca24bcd9b59243102e3c765b9829117ea (patch)
treecca5fc211f66c94b590e06eb1f6c92bc416f713b /llvm/lib/Support
parent503bbff36719b9d271f7af8c8ed684cc3eb23e80 (diff)
downloadbcm5719-llvm-36a978cca24bcd9b59243102e3c765b9829117ea.tar.gz
bcm5719-llvm-36a978cca24bcd9b59243102e3c765b9829117ea.zip
Disabling a spurious deprecation warning about using PathV1 from within the PathV1 implementation file.
llvm-svn: 158274
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Windows/Path.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc
index 146d6b39851..2280b341714 100644
--- a/llvm/lib/Support/Windows/Path.inc
+++ b/llvm/lib/Support/Windows/Path.inc
@@ -189,7 +189,17 @@ static Path *TempDirectory;
Path
Path::GetTemporaryDirectory(std::string* ErrMsg) {
if (TempDirectory) {
+#if defined(_MSC_VER)
+ // Visual Studio gets confused and emits a diagnostic about calling exists,
+ // even though this is the implementation for PathV1. Temporarily
+ // disable the deprecated warning message
+ #pragma warning(push)
+ #pragma warning(disable:4996)
+#endif
assert(TempDirectory->exists() && "Who has removed TempDirectory?");
+#if defined(_MSC_VER)
+ #pragma warning(pop)
+#endif
return *TempDirectory;
}
OpenPOWER on IntegriCloud