File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,8 @@ const NamedDecl *lookupSiblingWithinEnclosingScope(ASTContext &Ctx,
332
332
return nullptr ;
333
333
for (const auto &Child : DS->getDeclGroup ())
334
334
if (const auto *ND = dyn_cast<NamedDecl>(Child))
335
- if (ND != &RenamedDecl && ND->getName () == Name)
335
+ if (ND != &RenamedDecl && ND->getDeclName ().isIdentifier () &&
336
+ ND->getName () == Name)
336
337
return ND;
337
338
return nullptr ;
338
339
};
Original file line number Diff line number Diff line change @@ -1129,6 +1129,15 @@ TEST(RenameTest, Renameable) {
1129
1129
using ns::^foo;
1130
1130
)cpp" ,
1131
1131
" there are multiple symbols at the given location" , !HeaderFile},
1132
+
1133
+ {R"cpp(
1134
+ void test() {
1135
+ // no crash
1136
+ using namespace std;
1137
+ int [[V^ar]];
1138
+ }
1139
+ )cpp" ,
1140
+ nullptr , !HeaderFile},
1132
1141
};
1133
1142
1134
1143
for (const auto & Case : Cases) {
Original file line number Diff line number Diff line change 1
- // RUN: mlir-translate -mlir-to-llvmir -opaque-pointers %s | FileCheck %s
1
+ // RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s
2
2
3
3
// CHECK-LABEL: @opaque_ptr_load
4
4
llvm.func @opaque_ptr_load (%arg0: !llvm.ptr ) -> i32 {
You can’t perform that action at this time.
0 commit comments