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)
commit31ca49be47085b279755816b2145401abf9f349f
treebbcea8480598d8a306a6e6b1f08d9ace13d61122
parentc0a4f45bcb1fd89f30df2ffc9117595432959db7
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.

llvm-svn: 361274
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/AST/ast-print-no-sanitize.cpp [new file with mode: 0644]