aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-12-05 23:06:53 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-12-05 23:06:53 +0000
commite6ac50ad71b7dd63e5b746fce9eb3a1e76debb01 (patch)
treed37767ec45aaa7ae24fc116fdfa335cd0f320408 /llvm/lib/Object/MachOObjectFile.cpp
parent00fe87b4888b230325edd96a4c2df866d91da64e (diff)
downloadllvm-e6ac50ad71b7dd63e5b746fce9eb3a1e76debb01.zip
llvm-e6ac50ad71b7dd63e5b746fce9eb3a1e76debb01.tar.gz
llvm-e6ac50ad71b7dd63e5b746fce9eb3a1e76debb01.tar.bz2
-Wassign-enum: compare unqualified types
This commit changes -Wassign-enum to compare unqualified types. One could think that this does not matter much, because who wants a value of enum type that is const-qualified? But this breaks the intended pattern to silence this warning with an explicit cast: static const enum Foo z = (enum Foo) 42; In this case, source type is 'enum Foo', and destination type is 'const enum Foo', and if we compare qualified types, they don't match, so we used warn. llvm-svn: 196548
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions