mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +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
|
// Such a type would create an infinite loop otherwise. For these cases we
|
||||||
// simply don't produce a result for `getTypeImpl`.
|
// simply don't produce a result for `getTypeImpl`.
|
||||||
// To be on the safe side, we check whether the _unspecified_ type has
|
// To be on the safe side, we check whether the _unspecified_ type has
|
||||||
// changed since this also prevents an infinite loop for occuring when
|
// changed since this also prevents an infinite loop when `stripped` and
|
||||||
// `stripped` and `t` only differ by const'ness or volatile'ness.
|
// `t` only differ by const'ness or volatile'ness.
|
||||||
stripped.getUnspecifiedType() != t.getUnspecifiedType() and
|
stripped.getUnspecifiedType() != t.getUnspecifiedType() and
|
||||||
result = getTypeImpl0(stripped, indirectionIndex - 1)
|
result = getTypeImpl0(stripped, indirectionIndex - 1)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user