aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/TargetTransformInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/TargetTransformInfo.h b/include/llvm/TargetTransformInfo.h
index a446c7b971..6336afcffe 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;
}