[PATCH] D53931: TableGen: Fix ASAN error

Krzysztof Parzyszek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 31 07:16:28 PDT 2018


kparzysz added inline comments.


================
Comment at: utils/TableGen/SearchableTableEmitter.cpp:168
-                        "' too large to search");
-      return "uint" + utostr(NumBits) + "_t";
     } else if (Field.Enum || Field.IsIntrinsic || Field.IsInstruction)
----------------
How does the problem actually occur?  utostr returns a temporary std::string which should exist until the sum is constructed.  What object is used-after-scope?


Repository:
  rL LLVM

https://reviews.llvm.org/D53931





More information about the llvm-commits mailing list