Skip to content

Commit d4fe61f

Browse files
committed
EssentialTypes: Avoid recalculation of essential types
1 parent cf10b53 commit d4fe61f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

c/misra/src/codingstandards/c/misra/EssentialTypes.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ EssentialTypeCategory getEssentialTypeCategory(Type type) {
146146
/**
147147
* Gets the essential type of the given expression `e`, considering any explicit conversions.
148148
*/
149+
pragma[nomagic]
149150
Type getEssentialType(Expr e) {
150151
if e.hasExplicitConversion()
151152
then

0 commit comments

Comments
 (0)