diff options
author | Nathan Lanza <nathan@lanza.io> | 2022-04-25 10:48:55 -0700 |
---|---|---|
committer | Nathan Lanza <nathan@lanza.io> | 2022-04-25 11:10:46 -0700 |
commit | 950c95cfdd75a4a150148c9e0bc53f49b44e48bc (patch) | |
tree | 659ea097817811cb41cc22eb96365861a9a24587 /clang/unittests/Tooling/CompilationDatabaseTest.cpp | |
parent | ef7439bdf923e59095449c3bc8cfe72d8101eea5 (diff) | |
download | llvm-950c95cfdd75a4a150148c9e0bc53f49b44e48bc.zip llvm-950c95cfdd75a4a150148c9e0bc53f49b44e48bc.tar.gz llvm-950c95cfdd75a4a150148c9e0bc53f49b44e48bc.tar.bz2 |
[coroutines] Get an IntegerType from the value instead of defaulting to 64 bit
This AliasPtr is being created always from an Int64 even for targets
where 32 bit is the proper type. e.g. “thumbv7-none-linux-android16”.
This causes the assert in the `get` func to fail as we're getting a 32
bit from the APInt.
Fix this by simply always just getting the type from the value instead.
Reviewed By: ChuanqiXu
Differential Revision: https://reviews.llvm.org/D123272
Diffstat (limited to 'clang/unittests/Tooling/CompilationDatabaseTest.cpp')
0 files changed, 0 insertions, 0 deletions