[Driver] Add an assert to Darwin::isTargetMacOS() for consistency.
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 17 Jun 2015 22:51:12 +0000 (22:51 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 17 Jun 2015 22:51:12 +0000 (22:51 +0000)
llvm-svn: 239967

clang/lib/Driver/ToolChains.h

index 0b7073f..74b093f 100644 (file)
@@ -412,6 +412,7 @@ protected:
   }
 
   bool isTargetMacOS() const {
+    assert(TargetInitialized && "Target not initialized!");
     return TargetPlatform == MacOS;
   }