diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-01-20 00:18:04 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-01-20 00:18:04 +0000 |
| commit | 668443efb1db5568efc0cc7c1dfbf8ea04e8fb1d (patch) | |
| tree | ba78db1c2e8f86bfd83e5a036929a58cf2862714 /clang/lib/Sema/SemaInit.cpp | |
| parent | 2d9e532a3a99d84a30997012c48d24b5e54d13df (diff) | |
| download | bcm5719-llvm-668443efb1db5568efc0cc7c1dfbf8ea04e8fb1d.tar.gz bcm5719-llvm-668443efb1db5568efc0cc7c1dfbf8ea04e8fb1d.zip | |
Sema::BuildCXXMemberCallExpr() can fail due to access or ambiguities,
so allow it to propagate the failure outward. Fixes the crashing part
of <rdar://problem/8876150>.
llvm-svn: 123863
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaInit.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index 23b061dd4c7..9130603d560 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/lib/Sema/SemaInit.cpp @@ -3788,8 +3788,7 @@ InitializationSequence::Perform(Sema &S, CurInit.release(); // Build the actual call to the conversion function. - CurInit = S.Owned(S.BuildCXXMemberCallExpr(CurInitExpr, FoundFn, - Conversion)); + CurInit = S.BuildCXXMemberCallExpr(CurInitExpr, FoundFn, Conversion); if (CurInit.isInvalid() || !CurInit.get()) return ExprError(); |

