diff options
Diffstat (limited to 'llvm/utils')
-rw-r--r-- | llvm/utils/TableGen/Basic/IntrinsicEmitter.cpp | 5 | ||||
-rw-r--r-- | llvm/utils/llvm-test-mustache-spec/llvm-test-mustache-spec.cpp | 16 |
2 files changed, 4 insertions, 17 deletions
diff --git a/llvm/utils/TableGen/Basic/IntrinsicEmitter.cpp b/llvm/utils/TableGen/Basic/IntrinsicEmitter.cpp index 559868d..75dffb1 100644 --- a/llvm/utils/TableGen/Basic/IntrinsicEmitter.cpp +++ b/llvm/utils/TableGen/Basic/IntrinsicEmitter.cpp @@ -794,12 +794,15 @@ AttributeSet Intrinsic::getFnAttributes(LLVMContext &C, ID id) {{ if (id == 0) return AttributeSet(); auto [FnAttrID, _] = unpackID(IntrinsicsToAttributesMap[id - 1]); + if (FnAttrID == {}) + return AttributeSet(); return getIntrinsicFnAttributeSet(C, FnAttrID); } #endif // GET_INTRINSIC_ATTRIBUTES )", - UniqAttributesBitSize, MaxNumAttrs, NoFunctionAttrsID); + UniqAttributesBitSize, MaxNumAttrs, NoFunctionAttrsID, + NoFunctionAttrsID); } void IntrinsicEmitter::EmitIntrinsicToBuiltinMap( diff --git a/llvm/utils/llvm-test-mustache-spec/llvm-test-mustache-spec.cpp b/llvm/utils/llvm-test-mustache-spec/llvm-test-mustache-spec.cpp index ea1395b..bdcef37 100644 --- a/llvm/utils/llvm-test-mustache-spec/llvm-test-mustache-spec.cpp +++ b/llvm/utils/llvm-test-mustache-spec/llvm-test-mustache-spec.cpp @@ -54,20 +54,6 @@ static int NumXFail = 0; static int NumSuccess = 0; static const StringMap<StringSet<>> XFailTestNames = {{ - {"delimiters.json", - { - "Pair Behavior", - "Special Characters", - "Sections", - "Inverted Sections", - "Partial Inheritence", - "Post-Partial Behavior", - "Standalone Tag", - "Indented Standalone Tag", - "Standalone Line Endings", - "Standalone Without Previous Line", - "Standalone Without Newline", - }}, {"~dynamic-names.json", { "Basic Behavior - Partial", @@ -113,7 +99,6 @@ static const StringMap<StringSet<>> XFailTestNames = {{ "Block reindentation", "Intrinsic indentation", "Nested block reindentation", - }}, {"~lambdas.json", { @@ -126,7 +111,6 @@ static const StringMap<StringSet<>> XFailTestNames = {{ "Section - Expansion", "Section - Alternate Delimiters", "Section - Multiple Calls", - }}, {"partials.json", {"Standalone Indentation"}}, }}; |