aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2018-07-20 17:42:09 +0000
committerErich Keane <erich.keane@intel.com>2018-07-20 17:42:09 +0000
commit1ddd4bf87f5d131ef2f4787fd732986bff6f2018 (patch)
treeff5019208928405eee92f926be81c8cd5002a6bb /llvm/utils/FileCheck/FileCheck.cpp
parentf435a7eada02567e315371f73e64eab26829a67b (diff)
downloadllvm-1ddd4bf87f5d131ef2f4787fd732986bff6f2018.zip
llvm-1ddd4bf87f5d131ef2f4787fd732986bff6f2018.tar.gz
llvm-1ddd4bf87f5d131ef2f4787fd732986bff6f2018.tar.bz2
Prevent Scoped Enums from being Integral constant expressions:
Discovered because of: https://bugs.llvm.org/show_bug.cgi?id=38235 It seems to me that a scoped enum should NOT be an integral constant expression without a cast, so this seems like a sensical change. Attributes that check for an integer parameter simply use this function to ensure that they have an integer, so it was previously allowing a scoped enum. Also added a test based on Richard's feedback to ensure that case labels still work. Differential Revision: https://reviews.llvm.org/D49599 llvm-svn: 337585
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions