summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/TargetRegistry.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-04-09 04:20:00 +0000
committerCraig Topper <craig.topper@gmail.com>2014-04-09 04:20:00 +0000
commit8d399f87af9e98b1103ba794bcda4b33ff534f65 (patch)
tree61a5a0e459a82e1ecc9fc852c3a920269bd6a59f /llvm/lib/Support/TargetRegistry.cpp
parentc65a56901f6235739b6362a4f787ef609daa5ddd (diff)
downloadbcm5719-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/lib/Support/TargetRegistry.cpp')
-rw-r--r--llvm/lib/Support/TargetRegistry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/TargetRegistry.cpp b/llvm/lib/Support/TargetRegistry.cpp
index 5b0e4a30a9b..a008831eb6b 100644
--- a/llvm/lib/Support/TargetRegistry.cpp
+++ b/llvm/lib/Support/TargetRegistry.cpp
@@ -53,7 +53,7 @@ const Target *TargetRegistry::lookupTarget(const std::string &ArchName,
// Get the target specific parser.
std::string TempError;
TheTarget = TargetRegistry::lookupTarget(TheTriple.getTriple(), TempError);
- if (TheTarget == nullptr) {
+ if (!TheTarget) {
Error = ": error: unable to get target for '"
+ TheTriple.getTriple()
+ "', see --version and --triple.\n";
OpenPOWER on IntegriCloud