summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/User.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2014-03-25 08:42:49 +0000
committerYaron Keren <yaron.keren@gmail.com>2014-03-25 08:42:49 +0000
commit24fdbe567638d942fff6b1cf3df3cb4f5adf6823 (patch)
tree4988b79285d300e3e4a3fbdb92f92b9f59ea2740 /llvm/lib/IR/User.cpp
parent273bff4713735f8a2324addf876d9b59e4243023 (diff)
downloadbcm5719-llvm-24fdbe567638d942fff6b1cf3df3cb4f5adf6823.tar.gz
bcm5719-llvm-24fdbe567638d942fff6b1cf3df3cb4f5adf6823.zip
Disable Visual C++ warning 4722 about aborting a destructor,
it has no value for us. llvm-svn: 204704
Diffstat (limited to 'llvm/lib/IR/User.cpp')
-rw-r--r--llvm/lib/IR/User.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/lib/IR/User.cpp b/llvm/lib/IR/User.cpp
index cd124df1e93..940682826ac 100644
--- a/llvm/lib/IR/User.cpp
+++ b/llvm/lib/IR/User.cpp
@@ -83,28 +83,8 @@ void User::operator delete(void *Usr) {
// Operator Class
//===----------------------------------------------------------------------===//
-#if defined(_MSC_VER)
-// In Release modes, Visual Studio complains that the Operator destructor
-// never returns, which is true by design.
-// This does *not* depend on llvm_unreachable being dependent on NDEBUG:
-// even if llvm_unreachable is replaced by __assume(false), VC still warns in
-// Release modes but not in Debug modes. The real reason is optimization flags.
-// With /Od in Debug modes the warning is not issued whereas with /O1 it is.
-// I could not find any documentation to this effect, it is reproducable:
-// Try compiling http://msdn.microsoft.com/en-us/library/khwfyc5d(v=vs.90).aspx
-// with /O1 and then with /Od.
-// Anyhow, solution is same as lib/Support/Process.cpp:~self_process().
-
-#pragma warning(push)
-#pragma warning(disable:4722)
-#endif
-
Operator::~Operator() {
llvm_unreachable("should never destroy an Operator");
}
-#if defined(_MSC_VER)
-#pragma warning(pop)
-#endif
-
} // End llvm namespace
OpenPOWER on IntegriCloud