This was found by the green dragon sanitizer bot.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I think you have to protect against your dyn_cast failing.
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp | ||
---|---|---|
495–496 | Don't you need to check the result of the dyn_cast? |
Comment Actions
Also naming quibble...
lldb/include/lldb/Expression/Expression.h | ||
---|---|---|
38 | I don't think we use this naming for enum's anywhere. Since this is in the expression class, you don't need the EK. For the equivalent classof enum for ThreadPlans I use: typedef enum { eKindGeneric, eKindNull, eKindBase, eKindCallFunction, eKindPython, eKindStepInstruction, etc... This is inside a class so you don't need to namespace the enum name like we do with more general enums. |
Comment Actions
I was following http://www.llvm.org/docs/HowToSetUpLLVMStyleRTTI.html I will rename it to eKind...
I don't think we use this naming for enum's anywhere. Since this is in the expression class, you don't need the EK. For the equivalent classof enum for ThreadPlans I use:
This is inside a class so you don't need to namespace the enum name like we do with more general enums.