Skip to content

Commit ee96ce9

Browse files
author
git apple-llvm automerger
committed
Merge commit '0c5ba9d8c9df' from apple/stable/20200108 into swift/release/5.3
2 parents 6e528ab + 0c5ba9d commit ee96ce9

File tree

6 files changed

+30
-6
lines changed

6 files changed

+30
-6
lines changed

clang/lib/AST/ASTContext.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3629,10 +3629,10 @@ ASTContext::getDependentVectorType(QualType VecType, Expr *SizeExpr,
36293629
(void)CanonCheck;
36303630
DependentVectorTypes.InsertNode(New, InsertPos);
36313631
} else {
3632-
QualType Canon = getDependentSizedExtVectorType(CanonVecTy, SizeExpr,
3633-
SourceLocation());
3632+
QualType CanonTy = getDependentVectorType(CanonVecTy, SizeExpr,
3633+
SourceLocation(), VecKind);
36343634
New = new (*this, TypeAlignment) DependentVectorType(
3635-
*this, VecType, Canon, SizeExpr, AttrLoc, VecKind);
3635+
*this, VecType, CanonTy, SizeExpr, AttrLoc, VecKind);
36363636
}
36373637
}
36383638

clang/test/SemaCXX/vector.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,3 +400,12 @@ namespace swizzle_typo_correction {
400400
return A.xyzw < B.x && B.y > A.y; // OK, not a typo for 'xyzv'
401401
}
402402
}
403+
404+
namespace rdar60092165 {
405+
template <class T> void f() {
406+
typedef T first_type __attribute__((vector_size(sizeof(T) * 4)));
407+
typedef T second_type __attribute__((vector_size(sizeof(T) * 4)));
408+
409+
second_type st;
410+
}
411+
}

lldb/include/lldb/Utility/XcodeSDK.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class XcodeSDK {
4747
void Merge(XcodeSDK other);
4848

4949
XcodeSDK &operator=(XcodeSDK other);
50+
XcodeSDK(const XcodeSDK&) = default;
5051
bool operator==(XcodeSDK other);
5152

5253
/// A parsed SDK directory name.

lldb/source/Commands/CommandObjectBreakpoint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ class CommandObjectBreakpointSet : public CommandObjectParsed {
625625
RegularExpression regexp(m_options.m_func_regexp);
626626
if (llvm::Error err = regexp.GetError()) {
627627
result.AppendErrorWithFormat(
628-
"Function name regular expression could not be compiled: \"%s\"",
628+
"Function name regular expression could not be compiled: %s",
629629
llvm::toString(std::move(err)).c_str());
630630
result.SetStatus(eReturnStatusFailed);
631631
return false;

lldb/source/Utility/RegularExpression.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ llvm::StringRef RegularExpression::GetText() const { return m_regex_text; }
3535
llvm::Error RegularExpression::GetError() const {
3636
std::string error;
3737
if (!m_regex.isValid(error))
38-
return llvm::make_error<llvm::StringError>(llvm::inconvertibleErrorCode(),
39-
error);
38+
return llvm::make_error<llvm::StringError>(error,
39+
llvm::inconvertibleErrorCode());
4040
return llvm::Error::success();
4141
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import lldb
2+
from lldbsuite.test.decorators import *
3+
from lldbsuite.test.lldbtest import *
4+
from lldbsuite.test import lldbutil
5+
6+
class TestCase(TestBase):
7+
8+
mydir = TestBase.compute_mydir(__file__)
9+
10+
@no_debug_info_test
11+
def test_error(self):
12+
self.expect("breakpoint set --func-regex (", error=True,
13+
substrs=["error: Function name regular expression could " +
14+
"not be compiled: parentheses not balanced"])

0 commit comments

Comments
 (0)