mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 18:42:46 +02:00
Fixed hasLinkerPrivateGlobalPrefix treating StringRef as C String.
Reviewers: jgravelle-google, sbc100 Subscribers: aheejin, llvm-commits Differential Revision: https://reviews.llvm.org/D57545 llvm-svn: 352810
This commit is contained in:
parent
c16c6fb506
commit
3d782a24df
@ -491,7 +491,7 @@ public:
|
||||
StringRef getPrivateLabelPrefix() const { return PrivateLabelPrefix; }
|
||||
|
||||
bool hasLinkerPrivateGlobalPrefix() const {
|
||||
return LinkerPrivateGlobalPrefix[0] != '\0';
|
||||
return !LinkerPrivateGlobalPrefix.empty();
|
||||
}
|
||||
|
||||
StringRef getLinkerPrivateGlobalPrefix() const {
|
||||
|
Loading…
Reference in New Issue
Block a user