commit | adfc8d14ce2e5611aa366cb9135fa20095b7d191 | [log] [tgz] |
---|---|---|
author | Zhongxing Xu <xuzhongxing@gmail.com> | Fri Jul 17 06:58:08 2009 +0000 |
committer | Zhongxing Xu <xuzhongxing@gmail.com> | Fri Jul 17 06:58:08 2009 +0000 |
tree | 9e26d8fc7c0edad7bdcf9f769c3cded6ae1a9e39 | |
parent | 24ff030f400b261c142bab748bf2d26e5aaa948c [diff] |
Relax the assertion in ASTLocation's ctor: if the decl is not the immediate parent of the stmt, find the immediate parent for the stmt. This is because sometimes we cannot get the immediate decl of the stmt when creating the ASTLocation. We can only get a parent of the stmt. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76159 91177308-0d34-0410-b5e6-96231b3b80d8