summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object/readobj-shared-object.test
diff options
context:
space:
mode:
authorEdwin Vane <edwin.vane@intel.com>2013-02-17 16:45:54 +0000
committerEdwin Vane <edwin.vane@intel.com>2013-02-17 16:45:54 +0000
commit4ad00b46fbb0bfe2530b6cdd8803937166bfa80f (patch)
tree4ed87ff128357e28d7ae702f1b94d68fa7c4fd9b /llvm/test/Object/readobj-shared-object.test
parent1cba0a8e0aea9758a066bb8802020ee8f6502b06 (diff)
downloadbcm5719-llvm-4ad00b46fbb0bfe2530b6cdd8803937166bfa80f.tar.gz
bcm5719-llvm-4ad00b46fbb0bfe2530b6cdd8803937166bfa80f.zip
Fix -use-nullptr problems with assert()
If a cast expression (NullToPointer) is detected in a function-like macro parameter, we should use the spelling location instead of the expansion location. Using SourceManager::getFileLoc() fixes this problem. Also added testcases for this bug. Fixes: PR15279 Author: Tareq A Siraj <tareq.a.siraj@intel.com> Reviewer: klimek llvm-svn: 175399
Diffstat (limited to 'llvm/test/Object/readobj-shared-object.test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud