Skip to content

Commit e617cf9

Browse files
author
serge-sans-paille
committed
[NFC] Restore original SmallString size for X86TargetMachine::getSubtargetImpl lookup
Better safe than sorry here, quoting Craig Topper: > Clang passes a pretty lengthy feature string.
1 parent 6874726 commit e617cf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86TargetMachine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ X86TargetMachine::getSubtargetImpl(const Function &F) const {
248248
StringRef FS =
249249
FSAttr.isValid() ? FSAttr.getValueAsString() : (StringRef)TargetFS;
250250

251-
SmallString<64> Key;
251+
SmallString<512> Key;
252252
// The additions here are ordered so that the definitely short strings are
253253
// added first so we won't exceed the small size. We append the
254254
// much longer FS string at the end so that we only heap allocate at most

0 commit comments

Comments
 (0)