[PATCH] D121571: [TableGen] X86 mnemonic tables backend
Kan Shengchen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 16 18:29:01 PDT 2022
skan added inline comments.
================
Comment at: llvm/utils/TableGen/X86MnemonicTables.cpp:69
+ // \t
+ StringRef Mnemonic =
+ StringRef(AsmString).take_until([](char C) { return C == '\t'; });
----------------
I'm afraid using `StringRef` here is not safe, `AsmString` is destoryed after each iteration.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121571/new/
https://reviews.llvm.org/D121571
More information about the llvm-commits
mailing list