google / lldb-eval

lldb-eval is a library for evaluating expressions in the debugger context
Apache License 2.0
75 stars 19 forks source link

Fix accessing enum's integer type #181

Closed tonkosi closed 2 years ago

tonkosi commented 2 years ago

Check for underlying enumeration type was performed on wrong object (LLDBType vs lldb::SBType).

github-actions[bot] commented 2 years ago

Benchmark comparison for 7a67440e (base) vs 0183c510 (PR)

Benchmark                             Time             CPU      Time Old      Time New       CPU Old       CPU New
------------------------------------------------------------------------------------------------------------------
BM/AddTwoNumbers                   +0.0313         +0.0315        181503        187186        181435        187144
BM/ArrayDereference                -0.0063         -0.0064        194036        192806        194014        192763
BM/ArraySubscript                  -0.0214         -0.0214        242717        237533        242679        237493
BM/TypeCasting                     -0.0210         -0.0207        484909        474714        484683        474638
BM/ParseInteger                    -0.0116         -0.0116        154642        152851        154620        152826