[PATCH] D81608: Fix incorrect call to ExprResult::get()

Alexander Richardson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 11 14:54:46 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG385e5f7e147f: Fix incorrect call to ExprResult::get() (authored by arichardson).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81608/new/

https://reviews.llvm.org/D81608

Files:
  clang/lib/Sema/SemaExpr.cpp


Index: clang/lib/Sema/SemaExpr.cpp
===================================================================
--- clang/lib/Sema/SemaExpr.cpp
+++ clang/lib/Sema/SemaExpr.cpp
@@ -724,7 +724,7 @@
   // to function type.
   if (Ty->isFunctionType()) {
     Res = ImpCastExprToType(E, Context.getPointerType(Ty),
-                            CK_FunctionToPointerDecay).get();
+                            CK_FunctionToPointerDecay);
     if (Res.isInvalid())
       return ExprError();
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81608.270242.patch
Type: text/x-patch
Size: 480 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200611/573cd09b/attachment.bin>


More information about the cfe-commits mailing list