summaryrefslogtreecommitdiff
path: root/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorChris Wailes <chris.wailes@gmail.com>2013-10-31 15:38:12 +0000
committerChris Wailes <chris.wailes@gmail.com>2013-10-31 15:38:12 +0000
commit1aa89697dc73760dce700e99d78c5805aa8bd7bb (patch)
tree3cd4f1382b353fb3a97b303d3d61ab3de8cc374b /lib/Basic/Module.cpp
parent3bb1b5c953fc38d4b87525258cf27b7c908988b1 (diff)
downloadclang-1aa89697dc73760dce700e99d78c5805aa8bd7bb.tar.gz
clang-1aa89697dc73760dce700e99d78c5805aa8bd7bb.tar.bz2
clang-1aa89697dc73760dce700e99d78c5805aa8bd7bb.tar.xz
Fixed bug with checking the kind of types.
The isLValueReferenceType function checks to see if the QualType's canonical type is an LValue reference, and not if the QualType itself is an LValue reference. This caused a segfault when trying to cast the QualType's Type to a LValueReference. This is now fixed by casting the result of getCanonicalType(). In addition, a test was added to isConsumableType to prevent segfaults when a type being tested by the analysis is a reference to a pointer or a pointer to a reference. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193751 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions