We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 340d7c0 commit 7c30c5dCopy full SHA for 7c30c5d
clang/lib/Parse/ParseReflect.cpp
@@ -50,6 +50,13 @@ ExprResult Parser::ParseCXXReflectExpression(SourceLocation OpLoc) {
50
return ExprError();
51
52
TypeSourceInfo *TSI = nullptr;
53
+ QualType QT = Actions.GetTypeFromParser(TR.get(), &TSI);
54
+
55
+ if (QT.isNull())
56
+ return ExprError();
57
58
+ if (!TSI)
59
+ TSI = Actions.getASTContext().getTrivialTypeSourceInfo(QT, /*Loc=*/OpLoc);
60
61
return Actions.ActOnCXXReflectExpr(OpLoc, TSI);
62
}
0 commit comments