]> granicus.if.org Git - clang/commitdiff
[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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239967 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.h

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