Skip to content

Commit 30d6d6b

Browse files
Merge pull request #651 from rolfbjarne/fix-compiler-warnings
Fix a few compiler warnings.
2 parents 17cbc4d + 4787509 commit 30d6d6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sources/libClangSharp/ClangSharp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ CXCursor clangsharp_Cursor_getArgument(CXCursor C, unsigned i) {
161161
if (i < EWC->getNumObjects()) {
162162
llvm::PointerUnion<BlockDecl*, CompoundLiteralExpr*> object = EWC->getObject(i);
163163

164-
if (object.is<BlockDecl*>()) {
165-
return MakeCXCursor(object.get<BlockDecl*>(), getCursorTU(C));
164+
if (isa<BlockDecl*>(object)) {
165+
return MakeCXCursor(cast<BlockDecl*>(object), getCursorTU(C));
166166
}
167167
else {
168-
return MakeCXCursor(object.get<CompoundLiteralExpr*>(), getCursorDecl(C), getCursorTU(C));
168+
return MakeCXCursor(cast<CompoundLiteralExpr*>(object), getCursorDecl(C), getCursorTU(C));
169169
}
170170
}
171171
}

0 commit comments

Comments
 (0)