mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-20 08:54:08 +00:00
Don't create a StringRef with a NULL value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103455 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
972bf8dea1
commit
3cbae239bb
@ -389,6 +389,8 @@ void SubtargetFeatures::getDefaultSubtargetFeatures(const std::string &CPU,
|
||||
break;
|
||||
}
|
||||
|
||||
if (!Attrs) return;
|
||||
|
||||
StringRef SR(Attrs);
|
||||
|
||||
while (!SR.empty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user