Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
Make...Id
functions for debugging (#4759)
In practice, I am unable to call constructors like `SemIR::InstId` from a debugger. I first tried to use https://clang.llvm.org/docs/AttributeReference.html#noinline to make some non-inline calls to the constructor, but that didn't work: ``` toolchain/sem_ir/dump.cpp:245:23: error: 'noinline' attribute is ignored because there exists no call expression inside the statement [-Werror,-Wignored-attributes] 245 | [[clang::noinline]] return InstId(inst); | ``` Co-authored-by: Josh L <[email protected]>
- Loading branch information