diff --git a/include/llvm/TargetTransformInfo.h b/include/llvm/TargetTransformInfo.h index a446c7b9716..6336afcffe8 100644 --- a/include/llvm/TargetTransformInfo.h +++ b/include/llvm/TargetTransformInfo.h @@ -173,7 +173,7 @@ public: /// The index parameter is used by some of the shuffle kinds to add /// additional information. virtual unsigned getShuffleCost(ShuffleKind Kind, Type *Tp, - int Index) const { + int Index = 0) const { return 1; }