Skip to content

Commit 47db358

Browse files
committed
Use convenience method for extring the canonical and unqualified type
1 parent 2363494 commit 47db358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ bool CStringChecker::isFirstBufInBound(CheckerContext &C, ProgramStateRef State,
11301130
return true; // cf top comment.
11311131

11321132
// Support library functions defined with non-default address spaces
1133-
assert(ER->getValueType().getCanonicalType().getUnqualifiedType() ==
1133+
assert(ER->getValueType()->getCanonicalTypeUnqualified() ==
11341134
C.getASTContext().CharTy &&
11351135
"isFirstBufInBound should only be called with char* ElementRegions");
11361136

0 commit comments

Comments
 (0)