[Support][Error] Suppress warning about unused result.
authorLang Hames <lhames@gmail.com>
Tue, 30 Aug 2016 06:00:21 +0000 (06:00 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 30 Aug 2016 06:00:21 +0000 (06:00 +0000)
llvm-svn: 280059

llvm/include/llvm/Support/Error.h

index bd488e4..d4d4a00 100644 (file)
@@ -646,7 +646,7 @@ public:
 #endif // NDEBUG
   {
     new (getErrorStorage()) Error();
-    !!*getErrorStorage();
+    (void)!!*getErrorStorage();
   }
 #endif // _MSC_VER