mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-04 18:38:37 +00:00
Fix a use of freed string contents.
Speculatively try to fix our windows testers with a patch I found on the internet. llvm-svn: 139279
This commit is contained in:
parent
daeb007cee
commit
dc3f981b08
@ -764,11 +764,11 @@ void FilterChooser::emitBinaryParser(raw_ostream &o, unsigned &Indentation,
|
||||
|
||||
static void emitSinglePredicateMatch(raw_ostream &o, StringRef str,
|
||||
std::string PredicateNamespace) {
|
||||
const char *X = str.str().c_str();
|
||||
if (X[0] == '!')
|
||||
o << "!(Bits & " << PredicateNamespace << "::" << &X[1] << ")";
|
||||
if (str[0] == '!')
|
||||
o << "!(Bits & " << PredicateNamespace << "::"
|
||||
<< str.slice(1,str.size()) << ")";
|
||||
else
|
||||
o << "(Bits & " << PredicateNamespace << "::" << X << ")";
|
||||
o << "(Bits & " << PredicateNamespace << "::" << str << ")";
|
||||
}
|
||||
|
||||
bool FilterChooser::emitPredicateMatch(raw_ostream &o, unsigned &Indentation,
|
||||
|
Loading…
x
Reference in New Issue
Block a user