summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAsmInfo.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
commit93edffa8fe3d1e042dcceecda6d62dc090fee346 (patch)
treeaed47683751b6cffabc7c70545b6b9b52065aa28 /llvm/lib/MC/MCAsmInfo.cpp
parentaca9739a1affb675a1fab6a034b4e95e156318a5 (diff)
downloadbcm5719-llvm-93edffa8fe3d1e042dcceecda6d62dc090fee346.tar.gz
bcm5719-llvm-93edffa8fe3d1e042dcceecda6d62dc090fee346.zip
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. llvm-svn: 193751
Diffstat (limited to 'llvm/lib/MC/MCAsmInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud