diff options
author | Craig Topper <craig.topper@intel.com> | 2018-02-22 07:05:27 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-02-22 07:05:27 +0000 |
commit | 1d104b996a70fe82ded7dfbc77e21b042c30943a (patch) | |
tree | 4b6b5d23437dca53d6ce1a97bb9568bfa86e735a /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 966642d5bb45363030940b5dbb8083537648ae26 (diff) | |
download | bcm5719-llvm-1d104b996a70fe82ded7dfbc77e21b042c30943a.tar.gz bcm5719-llvm-1d104b996a70fe82ded7dfbc77e21b042c30943a.zip |
[DAGCombiner] Add two calls to isVector before making calls to getVectorElementType/getVectorNumElements to avoid an assert.
We looked through a BITCAST, but the bitcast might be a from a scalar type rather than a vector.
I don't have a test case. I stumbled onto it while prototyping another change that isn't ready yet.
llvm-svn: 325750
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions