summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-10-01 21:39:39 +0000
committerReid Kleckner <rnk@google.com>2018-10-01 21:39:39 +0000
commit7a6966ec27d9ca1507eedaf1ee487dfab14478d0 (patch)
tree7a39d3fe1786e6e1d7abf973c2e47afeb3c08a39 /clang/lib/CodeGen/CodeGenFunction.h
parent42cd8cd8626a7f5eb14b0b43b866dd90bd33277b (diff)
downloadbcm5719-llvm-7a6966ec27d9ca1507eedaf1ee487dfab14478d0.tar.gz
bcm5719-llvm-7a6966ec27d9ca1507eedaf1ee487dfab14478d0.zip
Fix the Windows build in GlobalISel
Clang-cl was complaining about some sort of constexpr narrowing bug: C:\src\llvm-project\llvm\lib\CodeGen\GlobalISel\CombinerHelper.cpp(136,31): error: non-constant-expression cannot be narrowed from type 'llvm::TargetOpcode::(anonymous enum at C:\src\llvm-project\llvm\include\llvm/CodeGen/TargetOpcodes.h:22:1)' to 'unsigned int' in initializer list [-Wc++11-narrowing] unsigned(MI.getOpcode()) == unsigned(TargetOpcode::G_LOAD) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\src\llvm-project\llvm\lib\CodeGen\GlobalISel\CombinerHelper.cpp(136,31): note: insert an explicit cast to silence this issue unsigned(MI.getOpcode()) == unsigned(TargetOpcode::G_LOAD) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast<unsigned int>( llvm-svn: 343541
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud