projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[C++11] Replace some comparisons with 'nullptr' with simple boolean checks to reduce...
[oota-llvm.git]
/
include
/
llvm
/
ADT
/
StringRef.h
diff --git
a/include/llvm/ADT/StringRef.h
b/include/llvm/ADT/StringRef.h
index d306b399faf0737097f58c56913070df48c89069..bd5a550b9f5214ccd755262d13edb175cc5583e7 100644
(file)
--- a/
include/llvm/ADT/StringRef.h
+++ b/
include/llvm/ADT/StringRef.h
@@
-186,7
+186,7
@@
namespace llvm {
/// str - Get the contents as an std::string.
std::string str() const {
- if (
Data == nullptr
) return std::string();
+ if (
!Data
) return std::string();
return std::string(Data, Length);
}