[llvm-dev] Get constants of undefined types in IR
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Wed Sep 4 10:51:26 PDT 2019
Hi Iulia,
On Tue, 3 Sep 2019 at 19:39, Iulia Stirb <iulia_s24 at yahoo.com> wrote:
> ArrayType * AT = ArrayType::get(ET,size);
>
> Internet gives different solutions for this error but none of them was appropriate for this case.
> Could you please help?
I take it that's a Clang error when compiling the code? I'm not
entirely sure, but it's possible you don't have a full definition for
llvm::ArrayType. It's not in the same header as IntegerType, so try
#including DerivedTypes.h.
Otherwise, does it give any indication about which type is incomplete?
Cheers.
Tim.
More information about the llvm-dev
mailing list