https://reviews.llvm.org/D37908
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313385
91177308-0d34-0410-b5e6-
96231b3b80d8
// Check for release functions, the only kind of functions that we care
// about that don't return a pointer type.
- if (FName[0] == 'C' && (FName[1] == 'F' || FName[1] == 'G')) {
+ if (FName.size() >= 2 &&
+ FName[0] == 'C' && (FName[1] == 'F' || FName[1] == 'G')) {
// Test for 'CGCF'.
FName = FName.substr(FName.startswith("CGCF") ? 4 : 2);
}
}
+// rdar://34210609
+void _() { _(); }; // no-warning