diff options
| author | Zachary Turner <zturner@google.com> | 2014-06-25 05:37:25 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2014-06-25 05:37:25 +0000 |
| commit | e74fa2a6cd5e37067db371fbffd7f6c9e7491b61 (patch) | |
| tree | b1b48e299624c20ceca14fa8cceb0ddcf321654b /lib/CodeGen/CGExprConstant.cpp | |
| parent | 7925371bbe385085182e24f9049b72ca5302099d (diff) | |
| download | clang-e74fa2a6cd5e37067db371fbffd7f6c9e7491b61.tar.gz clang-e74fa2a6cd5e37067db371fbffd7f6c9e7491b61.tar.bz2 clang-e74fa2a6cd5e37067db371fbffd7f6c9e7491b61.tar.xz | |
Don't go through the TypeSourceInfo when getting the SourceRange.
VarDecl provides a method getSourceRange(), which provides a more
robust way of getting the SourceRange since the TypeSourceInfo can
be null in certain cases.
Reviewed by: majnemer
Differential Revision: http://reviews.llvm.org/D4281
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions
