]> granicus.if.org Git - clang/commit
Modify begin()/end() for AsmStmt iterators to handle the case when Exprs.empty()
authorTed Kremenek <kremenek@apple.com>
Fri, 22 May 2009 22:03:22 +0000 (22:03 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 22 May 2009 22:03:22 +0000 (22:03 +0000)
commitd59a5bd0ab7821a643c540df8c84c70fef76a1c2
treec7f9cc44492ec612a7b7b3e2d32c76535f881340
parentb5ff6bfaf4bff6c70042600ad4070518440cec4a
Modify begin()/end() for AsmStmt iterators to handle the case when Exprs.empty()
is true. Because of recent changes to llvm::SmallVector, using these iterators
when Exprs was empty would cause an assertion failure.

This fixes: PR 4245.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72286 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Stmt.h