You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At Line 234, the condition of the BranchInst is dynamically casted into ICmpInst. However, the condition is not always ICmpInst. For example, it could be a CastInst which casts an i32 into an i1. In this case, the variable cmpInst would be null and a NPD will happen at line 236.
At Line 1092, the situation is similar.
Proposed Fix
guard this dyn_cast with a if
The text was updated successfully, but these errors were encountered:
Commit
Latest Main
Location
Description
At Line 234, the
![image](https://private-user-images.githubusercontent.com/93390595/246902434-5a834fc1-2f48-4fd8-8485-7e14d017129f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2ODQwNzEsIm5iZiI6MTcyNTY4Mzc3MSwicGF0aCI6Ii85MzM5MDU5NS8yNDY5MDI0MzQtNWE4MzRmYzEtMmY0OC00ZmQ4LTg0ODUtN2UxNGQwMTcxMjlmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA3VDA0MzYxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk5YjI0MWFiMmU5MTEwMzM3MjJkNDNhMzlmNjlmZGE3MjQ2ZDhmZmVkNDM2ZGFhMzI3NWEzYmE5YWVjMjdhMTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0._9dxv86UE1_TRpgJ0YCyC4jSSKeCpGQXbfSY54fbT-s)
condition
of theBranchInst
is dynamically casted intoICmpInst
. However, thecondition
is not alwaysICmpInst
. For example, it could be aCastInst
which casts ani32
into ani1
. In this case, the variablecmpInst
would benull
and a NPD will happen at line236
.At Line 1092, the situation is similar.
Proposed Fix
guard this
dyn_cast
with aif
The text was updated successfully, but these errors were encountered: