================
@@ -148,7 +148,7 @@ static SourceRange getLocationOfConst(const TypeSourceInfo 
*TSI,
                                       const SourceManager &SourceMgr,
                                       const LangOptions &LangOpts) {
   assert(TSI);
-  const auto FTL = TSI->getTypeLoc().IgnoreParens().getAs<FunctionTypeLoc>();
+  const auto FTL = TSI->getTypeLoc().getAsAdjusted<FunctionTypeLoc>();
----------------
zeyi2 wrote:

I think there might be more similar problems. I'll do a scan later when I have 
time.

https://github.com/llvm/llvm-project/pull/223007
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to