================
@@ -4276,24 +4276,28 @@ void OmpStructureChecker::CheckVarIsNotPartOfAnotherVar(
void OmpStructureChecker::CheckVarIsNotPartOfAnotherVar(
const parser::CharBlock &source, const parser::OmpObject &object,
llvm::StringRef clause) {
- bool report{false};
- if (auto *symbol{GetObjectSymbol(object)}) {
+ if (const Symbol *symbol{GetObjectSymbol(object)}) {
if (IsTypeParamInquiry(*symbol)) {
return;
}
- report = IsStructureComponent(*symbol);
- }
+ llvm::StringRef kind{};
+ if (IsStructureComponent(*symbol)) {
+ kind = "A structure component";
+ } else if (IsSubstring(object, &context_)) {
+ kind = "A substrincg";
----------------
chandraghale wrote:
Is this a typo **"substrincg"** ? Should be "A substring".
https://github.com/llvm/llvm-project/pull/201384
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits