mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
C++: Fix Code Scanning errors.
This commit is contained in:
@@ -948,8 +948,8 @@ private Type getTypeImpl0(Type t, int indirectionIndex) {
|
||||
// Such a type would create an infinite loop otherwise. For these cases we
|
||||
// simply don't produce a result for `getTypeImpl`.
|
||||
// To be on the safe side, we check whether the _unspecified_ type has
|
||||
// changed since this also prevents an infinite loop for occuring when
|
||||
// `stripped` and `t` only differ by const'ness or volatile'ness.
|
||||
// changed since this also prevents an infinite loop when `stripped` and
|
||||
// `t` only differ by const'ness or volatile'ness.
|
||||
stripped.getUnspecifiedType() != t.getUnspecifiedType() and
|
||||
result = getTypeImpl0(stripped, indirectionIndex - 1)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user