[cfe-dev] Bug 46268 - Bug 46268 (Comparison against fixed-point type leads to crash
Keane, Erich via cfe-dev
cfe-dev at lists.llvm.org
Thu Jun 11 09:11:12 PDT 2020
That means that the type being inspected is not a ComplexType. You may wish to use ‘dump’ to inspect what the type actually is, then figure out why the code expects it to be ComplexType when it isn’t.
From: cfe-dev <cfe-dev-bounces at lists.llvm.org> On Behalf Of Gousemoodhin Nadaf via cfe-dev
Sent: Thursday, June 11, 2020 9:04 AM
To: cfe-dev at lists.llvm.org
Subject: [cfe-dev] Bug 46268 - Bug 46268 (Comparison against fixed-point type leads to crash
Regarding Bug 46268 (Comparison against fixed-point type leads to crash).
I have analyzed the stack trace and reproduced the issue in my local build. I see the crash happens in the function getAsComplexIntegerType() (clang/lib/AST/type.cpp).
In this case, the const auto *Complex = getAs<ComplexType>() is NULL, so the function returns NULL, it causes crash. I am not sure why auto *Complex = getAs<ComplexType>() is NULL, If anyone knows about this function, please let me know.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev