Adapt llvmorg-14-init-13600-g92417eaf3329: braced constructor call

This commit is contained in:
Fangrui Song 2022-01-09 12:25:07 -08:00
parent dce86b1362
commit 8422f0a522

View File

@ -80,6 +80,10 @@ public:
#if LLVM_VERSION_MAJOR >= 8
,
SourceLocation openParLoc
#endif
#if LLVM_VERSION_MAJOR >= 14
,
bool braced
#endif
) override {
ls_sighelp.activeParameter = (int)currentArg;
@ -93,7 +97,11 @@ public:
cand = OverloadCandidate(pattern);
const auto *ccs =
#if LLVM_VERSION_MAJOR >= 14
cand.CreateSignatureString(currentArg, s, *alloc, cCTUInfo, true, braced);
#else
cand.CreateSignatureString(currentArg, s, *alloc, cCTUInfo, true);
#endif
const char *ret_type = nullptr;
SignatureInformation &ls_sig = ls_sighelp.signatures.emplace_back();