diff options
Diffstat (limited to 'lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/action/deprecated/C99ResolveParserAction.java')
-rw-r--r-- | lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/action/deprecated/C99ResolveParserAction.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/action/deprecated/C99ResolveParserAction.java b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/action/deprecated/C99ResolveParserAction.java index 982c538b2cd..f141fefbe98 100644 --- a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/action/deprecated/C99ResolveParserAction.java +++ b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/action/deprecated/C99ResolveParserAction.java @@ -1362,9 +1362,8 @@ import org.eclipse.cdt.internal.core.dom.parser.ITypeContainer; if(identifierType instanceof IFunctionType) { // TODO: check the parameter types IFunctionType functionType = (IFunctionType)identifierType; - try { - resultType = functionType.getReturnType(); - } catch (DOMException e) { } // do nothing, the problem binding is fine + resultType = functionType.getReturnType(); + } exprTypeStack.push(resultType); @@ -1391,9 +1390,8 @@ import org.eclipse.cdt.internal.core.dom.parser.ITypeContainer; IType resultType = C99ProblemBinding.badType(); if(exprType instanceof IArrayType) { IArrayType arrType = (IArrayType) exprType; - try { - resultType = arrType.getType(); // strip off the array type - } catch (DOMException e) { } + resultType = arrType.getType(); // strip off the array type + } exprTypeStack.push(resultType); |