File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -1202,24 +1202,23 @@ namespace Cpp {
12021202 return 0 ;
12031203 }
12041204
1205- TCppType_t GetVariableType (TCppScope_t var)
1206- {
1207- auto D = (Decl *) var;
1208-
1209- if (auto DD = llvm::dyn_cast_or_null<DeclaratorDecl>(D)) {
1210- QualType QT = DD->getType ();
1205+ TCppType_t GetVariableType (TCppScope_t var) {
1206+ auto D = (Decl*)var;
12111207
1212- // Check if the type is a typedef type
1213- if (QT->isTypedefNameType ()) {
1214- return QT.getAsOpaquePtr ();
1215- }
1208+ if (auto DD = llvm::dyn_cast_or_null<DeclaratorDecl>(D)) {
1209+ QualType QT = DD->getType ();
12161210
1217- // Else, return the canonical type
1218- QT = QT. getCanonicalType ();
1219- return QT.getAsOpaquePtr ();
1211+ // Check if the type is a typedef type
1212+ if (QT-> isTypedefNameType ()) {
1213+ return QT.getAsOpaquePtr ();
12201214 }
12211215
1222- return 0 ;
1216+ // Else, return the canonical type
1217+ QT = QT.getCanonicalType ();
1218+ return QT.getAsOpaquePtr ();
1219+ }
1220+
1221+ return 0 ;
12231222 }
12241223
12251224 intptr_t GetVariableOffset (compat::Interpreter& I, Decl* D) {
You can’t perform that action at this time.
0 commit comments