projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3aa039a
)
[Driver] Add an assert to Darwin::isTargetMacOS() for consistency.
author
Alexey Samsonov
<vonosmas@gmail.com>
Wed, 17 Jun 2015 22:51:12 +0000
(22:51 +0000)
committer
Alexey Samsonov
<vonosmas@gmail.com>
Wed, 17 Jun 2015 22:51:12 +0000
(22:51 +0000)
llvm-svn: 239967
clang/lib/Driver/ToolChains.h
patch
|
blob
|
history
diff --git
a/clang/lib/Driver/ToolChains.h
b/clang/lib/Driver/ToolChains.h
index
0b7073f
..
74b093f
100644
(file)
--- 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;
}