diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-04-09 04:20:00 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-04-09 04:20:00 +0000 |
commit | 8d399f87af9e98b1103ba794bcda4b33ff534f65 (patch) | |
tree | 61a5a0e459a82e1ecc9fc852c3a920269bd6a59f /llvm/include/llvm/Support/CommandLine.h | |
parent | c65a56901f6235739b6362a4f787ef609daa5ddd (diff) | |
download | bcm5719-llvm-8d399f87af9e98b1103ba794bcda4b33ff534f65.tar.gz bcm5719-llvm-8d399f87af9e98b1103ba794bcda4b33ff534f65.zip |
[C++11] Replace some comparisons with 'nullptr' with simple boolean checks to reduce verbosity.
llvm-svn: 205829
Diffstat (limited to 'llvm/include/llvm/Support/CommandLine.h')
-rw-r--r-- | llvm/include/llvm/Support/CommandLine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h index 006680587b6..ab94d615006 100644 --- a/llvm/include/llvm/Support/CommandLine.h +++ b/llvm/include/llvm/Support/CommandLine.h @@ -1664,7 +1664,7 @@ class alias : public Option { void done() { if (!hasArgStr()) error("cl::alias must have argument name specified!"); - if (AliasFor == nullptr) + if (!AliasFor) error("cl::alias must have an cl::aliasopt(option) specified!"); addArgument(); } |