]> granicus.if.org Git - clang/commit
__is_target_arch: Check the arch and subarch instead of the arch name
authorAlex Lorenz <arphaman@gmail.com>
Fri, 15 Dec 2017 19:58:38 +0000 (19:58 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 15 Dec 2017 19:58:38 +0000 (19:58 +0000)
commit3adf7e6c06c9e886fbc5f33a6c786344931ca2c9
tree59c6ae755292f43260d2260fc24effd585fc1374
parent5857036e6f0e54ff49a0be5627f2576151804a06
__is_target_arch: Check the arch and subarch instead of the arch name

This ensures that when compiling for "arm64" __is_target_arch will succeed for
both "arm64" and "aarch64".

Thanks to Bob Wilson who pointed this out!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320853 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/PPMacroExpansion.cpp
test/Preprocessor/is_target_arm64.c [new file with mode: 0644]