[PATCH] D53931: TableGen: Fix ASAN error
Nicolai Hähnle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 31 07:24:12 PDT 2018
nhaehnle 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)
----------------
kparzysz wrote:
> 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?
Must be some temporary object (the ASAN dump calls it "unknown"). To be honest, I was surprised about it as well, but I don't really have the time to dig into it further.
Repository:
rL LLVM
https://reviews.llvm.org/D53931
More information about the llvm-commits
mailing list