r239967 - [Driver] Add an assert to Darwin::isTargetMacOS() for consistency.
Alexey Samsonov
vonosmas at gmail.com
Wed Jun 17 15:51:13 PDT 2015
Author: samsonov
Date: Wed Jun 17 17:51:12 2015
New Revision: 239967
URL: http://llvm.org/viewvc/llvm-project?rev=239967&view=rev
Log:
[Driver] Add an assert to Darwin::isTargetMacOS() for consistency.
Modified:
cfe/trunk/lib/Driver/ToolChains.h
Modified: cfe/trunk/lib/Driver/ToolChains.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.h?rev=239967&r1=239966&r2=239967&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.h (original)
+++ cfe/trunk/lib/Driver/ToolChains.h Wed Jun 17 17:51:12 2015
@@ -412,6 +412,7 @@ protected:
}
bool isTargetMacOS() const {
+ assert(TargetInitialized && "Target not initialized!");
return TargetPlatform == MacOS;
}
More information about the cfe-commits
mailing list