diff options
Diffstat (limited to 'compiler/dex/verified_method.h')
-rw-r--r-- | compiler/dex/verified_method.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/dex/verified_method.h b/compiler/dex/verified_method.h index 954cbf4b26..437ae52437 100644 --- a/compiler/dex/verified_method.h +++ b/compiler/dex/verified_method.h @@ -70,6 +70,11 @@ class VerifiedMethod { // by using the check-cast elision peephole optimization in the verifier. bool IsSafeCast(uint32_t pc) const; + // Returns true if there were any errors during verification. + bool HasVerificationFailures() const { + return has_verification_failures_; + } + private: VerifiedMethod() = default; @@ -107,6 +112,8 @@ class VerifiedMethod { // dex PC to dex method index or dex field index based on the instruction. DequickenMap dequicken_map_; SafeCastSet safe_cast_set_; + + bool has_verification_failures_; }; } // namespace art |