aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/StringRef.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2017-12-19 02:57:23 +0000
committerQuentin Colombet <qcolombet@apple.com>2017-12-19 02:57:23 +0000
commit63a328c30c8d02f79944f1496356bf13d2a2ac12 (patch)
treef45bc88818850e01fde1d79e6b41f8f5fa15f76a /llvm/lib/Support/StringRef.cpp
parent8516b7f6b5b079fd617882cd739d377f5bb38678 (diff)
downloadllvm-63a328c30c8d02f79944f1496356bf13d2a2ac12.zip
llvm-63a328c30c8d02f79944f1496356bf13d2a2ac12.tar.gz
llvm-63a328c30c8d02f79944f1496356bf13d2a2ac12.tar.bz2
[TableGen][GlobalISel] Reset the internal map of RuleMatchers just before the emission
Between the creation of the last InstructionMatcher and the first emission of the related Rule, we need to clear the internal map of IDs. We used to do that right after the creation of the main InstructionMatcher when building the rule and although that worked, this is fragile because if for some reason some later code decides to create more InstructionMatcher before the final call to emit, then the IDs would be completely messed up. Move that to the beginning of "emit" so that the IDs are guarantee to be consistent. NFC. llvm-svn: 321053
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions