File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -525,10 +525,12 @@ void ExprAnalysis::analyzeExpr(const DeclRefExpr *DRE) {
525
525
dyn_cast<NamespaceDecl>(Qualifier->getAsNamespace ())) {
526
526
CTSName = getNameSpace (NSD) + " ::" + DRE->getNameInfo ().getAsString ();
527
527
}
528
- } else if (auto NA = Qualifier->getAsNamespaceAlias ()) {
529
- auto ND = NA->getNamespace ();
530
- if (ND && (ND->getName () == " wmma" ) &&
531
- dpct::DpctGlobalInfo::isInCudaPath (ND->getBeginLoc ())) {
528
+ } else if (Qualifier->getAsNamespaceAlias () &&
529
+ Qualifier->getAsNamespaceAlias ()->getNamespace () &&
530
+ (Qualifier->getAsNamespaceAlias ()->getNamespace ()->getName () ==
531
+ " wmma" )) {
532
+ auto ND = Qualifier->getAsNamespaceAlias ()->getNamespace ();
533
+ if (dpct::DpctGlobalInfo::isInCudaPath (ND->getBeginLoc ())) {
532
534
CTSName = getNameSpace (ND) + " ::" + DRE->getNameInfo ().getAsString ();
533
535
}
534
536
} else if (!IsNamespaceOrAlias || !IsSpecicalAPI) {
You can’t perform that action at this time.
0 commit comments