[cfe-commits] r117954 - /cfe/trunk/lib/Sema/SemaExprCXX.cpp
Douglas Gregor
dgregor at apple.com
Mon Nov 1 14:10:29 PDT 2010
Author: dgregor
Date: Mon Nov 1 16:10:29 2010
New Revision: 117954
URL: http://llvm.org/viewvc/llvm-project?rev=117954&view=rev
Log:
Harden Sema::MaybeBindTotemporary.
Modified:
cfe/trunk/lib/Sema/SemaExprCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=117954&r1=117953&r2=117954&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Mon Nov 1 16:10:29 2010
@@ -2933,6 +2933,9 @@
}
ExprResult Sema::MaybeBindToTemporary(Expr *E) {
+ if (!E)
+ return ExprError();
+
if (!Context.getLangOptions().CPlusPlus)
return Owned(E);
More information about the cfe-commits
mailing list