[all-commits] [llvm/llvm-project] 49e463: [IR] Constant::getAggregateElement - early-out for...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Tue Nov 24 04:04:04 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 49e463ff803d144bec510d6c1e061aafbf3b27cf
https://github.com/llvm/llvm-project/commit/49e463ff803d144bec510d6c1e061aafbf3b27cf
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2020-11-24 (Tue, 24 Nov 2020)
Changed paths:
M llvm/lib/IR/Constants.cpp
M llvm/test/Transforms/InstCombine/vscale_extractelement.ll
Log Message:
-----------
[IR] Constant::getAggregateElement - early-out for ScalableVectorType
We can't call getNumElements() for ScalableVectorType types - just bail for now, although ConstantAggregateZero/UndefValue could return a reasonable value.
Fixes crash shown in OSS-Fuzz #25272 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25272
More information about the All-commits
mailing list