Do not use the incorrect attribute spelling list index when translating a no_sanitize...
authorAaron Ballman <aaron@aaronballman.com>
Tue, 21 May 2019 17:24:49 +0000 (17:24 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 21 May 2019 17:24:49 +0000 (17:24 +0000)
commit066dde24f062acf75e1e6bb037a6e27ca3b77739
tree18552b0f383742e16cb8fa691166838280a69dbf
parent153460e92a503344b5f2232e4aa5c15554d9ab62
Do not use the incorrect attribute spelling list index when translating a no_sanitize_foo attribute into a no_sanitize("foo") attribute.

This fixes a crash when AST pretty printing declarations marked with no_sanitize_memory.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361274 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclAttr.cpp
test/AST/ast-print-no-sanitize.cpp [new file with mode: 0644]