diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-01-04 07:36:02 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-01-04 07:36:02 +0000 |
commit | 087dc8b83197db9e0f87885da20feea574343c3f (patch) | |
tree | 454da0ce168c6ec5b8523bbfac026f316c776042 /clang/unittests/Format/FormatTestJava.cpp | |
parent | 6ee8d17bc61d6a7e479b349d7f48edeabe61791f (diff) | |
download | llvm-087dc8b83197db9e0f87885da20feea574343c3f.zip llvm-087dc8b83197db9e0f87885da20feea574343c3f.tar.gz llvm-087dc8b83197db9e0f87885da20feea574343c3f.tar.bz2 |
InstCombine: match can find ConstantExprs, don't assume we have a Value
We assumed the output of a match was a Value, this would cause us to
assert because we would fail a cast<>. Instead, use a helper in the
Operator family to hide the distinction between Value and Constant.
This fixes PR22087.
llvm-svn: 225127
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions