mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Fix handling of CHECK-DAG combined with CHECK-NOT
Patch by Daniel Sanders. llvm-svn: 187651
This commit is contained in:
parent
872e0f4b7c
commit
c5550f3c4b
@ -22,4 +22,5 @@ mul r5, r10, r11
|
||||
|
||||
; CHECK-DAG: add [[REG1:r[0-9]+]], r1, r2
|
||||
; CHECK-DAG: add [[REG2:r[0-9]+]], r3, r4
|
||||
; CHECK-NOT: xor
|
||||
; CHECK-DAG: mul r5, [[REG1]], [[REG2]]
|
||||
|
@ -1013,8 +1013,7 @@ size_t CheckString::CheckDag(const SourceMgr &SM, StringRef Buffer,
|
||||
// CHECK-DAG, verify that there's no 'not' strings occurred in that
|
||||
// region.
|
||||
StringRef SkippedRegion = Buffer.substr(LastPos, MatchPos);
|
||||
size_t Pos = CheckNot(SM, SkippedRegion, NotStrings, VariableTable);
|
||||
if (Pos != StringRef::npos)
|
||||
if (CheckNot(SM, SkippedRegion, NotStrings, VariableTable))
|
||||
return StringRef::npos;
|
||||
// Clear "not strings".
|
||||
NotStrings.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user