[PATCH] [Sema] Prevent crash while trying to merge types
Davide Italiano
dccitaliano at gmail.com
Thu Apr 23 18:41:26 PDT 2015
Yes, thanks. That actually worked and passes the test suite.
Does the check look fine to you?
http://reviews.llvm.org/D9235
Files:
SemaDecl.cpp
Index: SemaDecl.cpp
===================================================================
--- SemaDecl.cpp
+++ SemaDecl.cpp
@@ -1749,7 +1749,7 @@
Loc, Loc, II, R, /*TInfo=*/nullptr,
SC_Extern,
false,
- /*hasPrototype=*/true);
+ R->isFunctionProtoType());
New->setImplicit();
// Create Decl objects for each parameter, adding them to the
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9235.24347.patch
Type: text/x-patch
Size: 558 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150424/c5c6068d/attachment.bin>
More information about the cfe-commits
mailing list