From 60e85f8c9e226435545a65dc858076bb78506492 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Wed, 17 Jun 2015 22:51:12 +0000 Subject: [PATCH] [Driver] Add an assert to Darwin::isTargetMacOS() for consistency. llvm-svn: 239967 --- clang/lib/Driver/ToolChains.h | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/Driver/ToolChains.h b/clang/lib/Driver/ToolChains.h index 0b7073f2ba0b..74b093f26714 100644 --- a/clang/lib/Driver/ToolChains.h +++ b/clang/lib/Driver/ToolChains.h @@ -412,6 +412,7 @@ protected: } bool isTargetMacOS() const { + assert(TargetInitialized && "Target not initialized!"); return TargetPlatform == MacOS; }