commit | 66c2c93df8e6f2b2926dd3ce8b087eb4355ded8b | [log] [tgz] |
---|---|---|
author | Bill Wendling <isanbard@gmail.com> | Tue May 11 01:33:39 2010 +0000 |
committer | Bill Wendling <isanbard@gmail.com> | Tue May 11 01:33:39 2010 +0000 |
tree | d048de673b2a4960ffcb012e6a214fedaa56cc54 | |
parent | 3b4d05be3b562bc0c4d71364149a7d118d31f129 [diff] [blame] |
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
diff --git a/lib/Target/SubtargetFeature.cpp b/lib/Target/SubtargetFeature.cpp index 035e64a..113cd5b 100644 --- a/lib/Target/SubtargetFeature.cpp +++ b/lib/Target/SubtargetFeature.cpp
@@ -389,6 +389,8 @@ break; } + if (!Attrs) return; + StringRef SR(Attrs); while (!SR.empty()) {