r270686 - [ms][dll] #26935 Defining a dllimport function should cause it to be exported

2016-05-25 Thread Denis Zobnin via cfe-commits
Author: dzobnin Date: Wed May 25 06:32:42 2016 New Revision: 270686 URL: http://llvm.org/viewvc/llvm-project?rev=270686&view=rev Log: [ms][dll] #26935 Defining a dllimport function should cause it to be exported If we have some function with dllimport attribute and then we have the function defin

r268129 - [NFC] Initialize a variable to make buildbot green.

2016-04-29 Thread Denis Zobnin via cfe-commits
Author: dzobnin Date: Fri Apr 29 17:50:16 2016 New Revision: 268129 URL: http://llvm.org/viewvc/llvm-project?rev=268129&view=rev Log: [NFC] Initialize a variable to make buildbot green. In r268085 "[MS] Make #pragma pack use PragmaStack<> class." there was an uninitialized variable 'Alignment', w

r268085 - [MS] Make #pragma pack use PragmaStack<> class.

2016-04-29 Thread Denis Zobnin via cfe-commits
Author: dzobnin Date: Fri Apr 29 13:17:40 2016 New Revision: 268085 URL: http://llvm.org/viewvc/llvm-project?rev=268085&view=rev Log: [MS] Make #pragma pack use PragmaStack<> class. Make implementation of #pragma pack consistent with other "stack" pragmas. Use PragmaStack<> class instead of old r

Re: [PATCH] D19727: [MS] Improved implementation #pragma pack (MS pragmas, part 2)

2016-04-29 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added inline comments. Comment at: lib/Sema/SemaAttr.cpp:277-278 @@ -276,4 @@ - // empty. - Diag(PragmaLoc, diag::warn_pragma_pop_failed) - << "pack" << (Name ? "no record matching name" : "stack empty"); - Here I removed the "

[PATCH] D19727: [MS] Improved implementation #pragma pack (MS pragmas, part 2)

2016-04-29 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla created this revision. d.zobnin.bugzilla added a reviewer: rnk. d.zobnin.bugzilla added subscribers: thakis, cfe-commits. An attempt to make implementation of #pragma pack consistent with other "stack" pragmas. Also modifies #pragma options align, since it shares the stack with

Re: [PATCH] D18700: [Inline asm][GCC compatibility] Handle %v-prefixed code in inline assembly

2016-04-29 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla updated this revision to Diff 55581. d.zobnin.bugzilla added a comment. Herald added a subscriber: joker.eph. Updated the patch after r266292 commit: [ASTImporter] Implement some expression-related AST node import. http://reviews.llvm.org/D18700 Files: include/clang/AST/Stm

Re: [PATCH] D19361: [MS] Improved implementation of MS stack pragmas (vtordisp, *_seg)

2016-04-29 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added a comment. Reid, thanks for review! I've changed the patch according to your comments and also moved implementation of RAII object to SemaAttr.cpp file (implementation in header broke many buildbots). Nico, I will look at serialization and try to implement the desired be

r268029 - Recommit "[MS] Improved implementation of stack pragmas (vtordisp, *_seg)"

2016-04-29 Thread Denis Zobnin via cfe-commits
Author: dzobnin Date: Fri Apr 29 06:27:00 2016 New Revision: 268029 URL: http://llvm.org/viewvc/llvm-project?rev=268029&view=rev Log: Recommit "[MS] Improved implementation of stack pragmas (vtordisp, *_seg)" Slightly updated version, double-checked build and tests. Improve implementation of MS p

r267870 - Revert "[MS] Improved implementation of MS stack pragmas (vtordisp, *_seg)"

2016-04-28 Thread Denis Zobnin via cfe-commits
Author: dzobnin Date: Thu Apr 28 06:32:10 2016 New Revision: 267870 URL: http://llvm.org/viewvc/llvm-project?rev=267870&view=rev Log: Revert "[MS] Improved implementation of MS stack pragmas (vtordisp, *_seg)" This reverts commit r267866. Modified: cfe/trunk/include/clang/Sema/Sema.h cfe

r267866 - [MS] Improved implementation of MS stack pragmas (vtordisp, *_seg)

2016-04-28 Thread Denis Zobnin via cfe-commits
Author: dzobnin Date: Thu Apr 28 05:13:18 2016 New Revision: 267866 URL: http://llvm.org/viewvc/llvm-project?rev=267866&view=rev Log: [MS] Improved implementation of MS stack pragmas (vtordisp, *_seg) Rework implementation of several MS pragmas that use internal stack: vtordisp, {bss|code|const|d

Re: [PATCH] D18700: [Inline asm][GCC compatibility] Handle %v-prefixed code in inline assembly

2016-04-27 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added a comment. This is just a weekly friendly ping. Please take a look at the new patch! Thank you, Denis Zobnin http://reviews.llvm.org/D18700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

[PATCH] D19361: [MS] Improved implementation of MS stack pragmas (vtordisp, *_seg)

2016-04-21 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla created this revision. d.zobnin.bugzilla added a reviewer: rnk. d.zobnin.bugzilla added a subscriber: cfe-commits. This patch attempts to improve implementation of several MS pragmas that use stack (vtordisp, { bss | code | const | data }_seg) and fix some compatibility issues.

r266976 - Correctly parse GCC-style asm line following MS-style asm line.

2016-04-21 Thread Denis Zobnin via cfe-commits
Author: dzobnin Date: Thu Apr 21 05:59:18 2016 New Revision: 266976 URL: http://llvm.org/viewvc/llvm-project?rev=266976&view=rev Log: Correctly parse GCC-style asm line following MS-style asm line. Quit parsing MS-style inline assembly if the following statement has GCC style. Enables compilation

Re: [PATCH] D18652: [Inline asm] Correctly parse GCC-style asm line following MS-style asm line

2016-04-20 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added a comment. Richard, Eric, Please take a look at the patch. Thank you, Denis Zobnin http://reviews.llvm.org/D18652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

Re: [PATCH] D18657: Propagate missing empty exception spec from function declared in system header

2016-04-19 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added a comment. Friendly ping, please take a look. Thank you, Denis Zobnin http://reviews.llvm.org/D18657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18700: [Inline asm][GCC compatibility] Handle %v-prefixed code in inline assembly

2016-04-19 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla marked an inline comment as done. d.zobnin.bugzilla added a comment. Friendly ping, please take a look. Thank you, Denis Zobnin http://reviews.llvm.org/D18700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.ll

Re: [PATCH] D18698: [C11] PR24451: Allow restrict _Atomic pointers

2016-04-14 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added a comment. Richard, please let me know what in your opinion we should do with this revision. Thank you, Denis Zobnin http://reviews.llvm.org/D18698 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.o

Re: [PATCH] D18652: [Inline asm] Correctly parse GCC-style asm line following MS-style asm line

2016-04-13 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added a reviewer: rsmith. d.zobnin.bugzilla removed a subscriber: rsmith. d.zobnin.bugzilla updated this revision to Diff 53543. d.zobnin.bugzilla added a comment. Richard, thank you for the review! I've created a static function to check if this is a GCC asm statement as you r

Re: [PATCH] D18657: Propagate missing empty exception spec from function declared in system header

2016-04-12 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla updated this revision to Diff 53414. d.zobnin.bugzilla added a comment. John, thanks for the review! Please take a look at the updated patch -- did I understand your comments correctly? The test passes and ds2 application is compiled successfully. Thank you, Denis Zobnin htt

Re: [PATCH] D18700: [Inline asm][GCC compatibility] Handle %v-prefixed code in inline assembly

2016-04-12 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla updated this revision to Diff 53400. d.zobnin.bugzilla added a comment. Eric, thank you for the review! I've renamed the test, but have also made it a .cpp file for the reasons described below. You are right -- GCC looks at "target" attribute applied to the function in which

Re: [PATCH] D18657: Propagate missing empty exception spec from function declared in system header

2016-04-08 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added a comment. Friendly ping, please take a look. Thank you, Denis Zobnin http://reviews.llvm.org/D18657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18698: [C11] PR24451: Allow restrict _Atomic pointers

2016-04-04 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added a comment. Richard, thank you for the review and explanation! I don't have any examples of useful code using this extension, I was trying to fix the PR... So, do you think we should add this GCC extension to Clang (with a proper warning, of course) for compatibility reaso

[PATCH] D18700: [Inline asm][GCC compatibility] Handle %v-prefixed code in inline assembly

2016-04-01 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla created this revision. d.zobnin.bugzilla added a reviewer: echristo. d.zobnin.bugzilla added a subscriber: cfe-commits. Handle an inline assembly feature of GCC: code prefixed with "%v", e. g. "%vpcmpestri" is transformed into "vpcmpestri" instruction if target supports AVX and

[PATCH] D18698: [C11] PR24451: Allow restrict _Atomic pointers

2016-04-01 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla created this revision. d.zobnin.bugzilla added a reviewer: rsmith. d.zobnin.bugzilla added a subscriber: cfe-commits. Treat _Atomic pointers as pointer types (check value type of AtomicType) in case of handling the "restrict" qualifier. Accept such code (so does GCC): int * res

[PATCH] D18657: Propagate missing empty exception spec from function declared in system header

2016-03-31 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla created this revision. d.zobnin.bugzilla added reviewers: doug.gregor, rjmccall. d.zobnin.bugzilla added a subscriber: cfe-commits. If new function is missing empty exception specification "throw()" and "throw()" came from system header, don't emit errors. It is already implemen

[PATCH] D18652: [Inline asm] Correctly parse GCC-style asm line following MS-style asm line

2016-03-31 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla created this revision. d.zobnin.bugzilla added a reviewer: echristo. d.zobnin.bugzilla added a subscriber: cfe-commits. Clang fails to compile the following code: void f() { __asm mov ebx, ecx __asm__("movl %ecx, %edx"); } reporting unexpected token "__asm__" at start of st

r260510 - [MCU] Fix assertion failure on function returning empty union.

2016-02-11 Thread Denis Zobnin via cfe-commits
Author: dzobnin Date: Thu Feb 11 05:26:03 2016 New Revision: 260510 URL: http://llvm.org/viewvc/llvm-project?rev=260510&view=rev Log: [MCU] Fix assertion failure on function returning empty union. Treat empty struct/union in return type as void for MCU ABI. PR26438. Differential Revision: http:/

r260373 - Fix assertion "Chunk.Kind == DeclaratorChunk::Function" with attributed type.

2016-02-10 Thread Denis Zobnin via cfe-commits
Author: dzobnin Date: Wed Feb 10 05:23:48 2016 New Revision: 260373 URL: http://llvm.org/viewvc/llvm-project?rev=260373&view=rev Log: Fix assertion "Chunk.Kind == DeclaratorChunk::Function" with attributed type. This patch is to upgrade FunctionTypeUnwrapper for correct processing of AttributedTy

Re: [PATCH] D16808: [MCU] PR26438: Fix assertion failure on function returning an empty struct or union

2016-02-09 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla updated this revision to Diff 47333. d.zobnin.bugzilla added a comment. Thank you for your reply! Added a check for empty struct/union to treat them as void, updated the test accordingly. Please take a look. http://reviews.llvm.org/D16808 Files: lib/CodeGen/TargetInfo.cpp

Re: [PATCH] D16808: [MCU] PR26438: Fix assertion failure on function returning an empty struct or union

2016-02-04 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added a comment. Thank you for the review! David, I started from the assertion failure and was going up the call stack trying to understand what should be changed to make the assertion go away. In shouldReturnTypeInRegister() function there is isRegisterSize(Size) check for i

Re: [PATCH] D16770: [MS] PR26234: Allow typedef redefinition of equally qualified, sized and aligned types in C

2016-02-03 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla marked 2 inline comments as done. d.zobnin.bugzilla added a comment. @thakis, it is needed to be able to compile SPEC2000: 255.vortex. http://reviews.llvm.org/D16770 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://li

Re: [PATCH] D16770: [MS] PR26234: Allow typedef redefinition of equally qualified, sized and aligned types in C

2016-02-03 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla marked 5 inline comments as done. Comment at: include/clang/AST/ASTContext.h:1772-1783 @@ -1771,1 +1771,14 @@ + /// Return true is the given typedef types are compatible in C from MSVC's + /// point of view. + // + // Conditions: + // 1. Both typedef typ

Re: [PATCH] D16770: [MS] PR26234: Allow typedef redefinition of equally qualified, sized and aligned types in C

2016-02-03 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla updated this revision to Diff 46781. d.zobnin.bugzilla added a comment. Thanks for the review! Updated the patch according to the comments: allowed only integer, enum and pointer types which have the same qualifiers, signedness, width and alignment. Changed the diagnostic text

r259532 - PR23057: Fix assertion `Val && "isa<> used on a null pointer"' on invalid for-range expression.

2016-02-02 Thread Denis Zobnin via cfe-commits
Author: dzobnin Date: Tue Feb 2 11:33:09 2016 New Revision: 259532 URL: http://llvm.org/viewvc/llvm-project?rev=259532&view=rev Log: PR23057: Fix assertion `Val && "isa<> used on a null pointer"' on invalid for-range expression. Fix the issue discovered by fuzzing (PR23057, comment 18) by handl

[PATCH] D16808: [MCU] PR26438: Fix assertion failure on function returning an empty struct or union

2016-02-02 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla created this revision. d.zobnin.bugzilla added reviewers: mkuper, rnk, DavidKreitzer. d.zobnin.bugzilla added a subscriber: cfe-commits. Add missing check for zero-sized type for MCU ABI in order to return zero-sized types (empty structs and unions) via memory. http://reviews.l

r259497 - Fix for PR8901: attribute "mode" rejected for enums and dependent types.

2016-02-02 Thread Denis Zobnin via cfe-commits
Author: dzobnin Date: Tue Feb 2 07:50:39 2016 New Revision: 259497 URL: http://llvm.org/viewvc/llvm-project?rev=259497&view=rev Log: Fix for PR8901: attribute "mode" rejected for enums and dependent types. Allow "mode" attribute for enum types, except for vector modes, for compatibility with GC

r259492 - Test commit (NFC).

2016-02-02 Thread Denis Zobnin via cfe-commits
Author: dzobnin Date: Tue Feb 2 06:39:08 2016 New Revision: 259492 URL: http://llvm.org/viewvc/llvm-project?rev=259492&view=rev Log: Test commit (NFC). Modified: cfe/trunk/test/CodeGenCXX/alignment.cpp Modified: cfe/trunk/test/CodeGenCXX/alignment.cpp URL: http://llvm.org/viewvc/llvm-proje

Re: [PATCH] D16630: PR23057: Fix assertion `Val && "isa<> used on a null pointer"' on invalid for-range expression

2016-02-02 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added inline comments. Comment at: lib/Parse/ParseStmt.cpp:1719-1724 @@ -1718,6 +1718,8 @@ if (ForRange) { +ExprResult CorrectedRange = +Actions.CorrectDelayedTyposInExpr(ForRangeInit.RangeExpr.get()); ForRangeStmt = Actions.ActOnCXXForRangeSt

[PATCH] D16770: [MS] PR26234: Allow typedef redefinition of equally qualified, sized and aligned types in C

2016-02-01 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla created this revision. d.zobnin.bugzilla added reviewers: rnk, majnemer. d.zobnin.bugzilla added a subscriber: cfe-commits. Allow typedef redefinition with different types in C if the types are equally qualified, sized and aligned. MSVC allows such redefinition, emits warning C

Re: [PATCH] D16219: PR8901: attribute "mode" rejected for enums and dependent types

2016-02-01 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla updated this revision to Diff 46521. d.zobnin.bugzilla added a comment. Thanks for the review! Only updated the text of diagnostics, NFC. http://reviews.llvm.org/D16219 Files: include/clang/Basic/Attr.td include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/Attr

[PATCH] D16630: PR23057: Fix assertion `Val && "isa<> used on a null pointer"' on invalid for-range expression

2016-01-27 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla created this revision. d.zobnin.bugzilla added reviewers: kcc, rsmith. d.zobnin.bugzilla added a subscriber: cfe-commits. Fix the issue discovered by fuzzing (https://llvm.org/bugs/show_bug.cgi?id=23057#c18) by handling nullptr in Sema::ActOnCXXForRangeDecl and correct delayed

Re: [PATCH] D16219: PR8901: attribute "mode" rejected for enums and dependent types

2016-01-27 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added a comment. Friendly ping, please take a look. http://reviews.llvm.org/D16219 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16219: PR8901: attribute "mode" rejected for enums and dependent types

2016-01-20 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla updated this revision to Diff 45401. d.zobnin.bugzilla added a comment. Updated the patch after committed fix for http://reviews.llvm.org/D16301 (r258213). This patch: 1. Adds "Enum" Subject to 'mode' attribute to be able to compile code like "typedef enum { X } __attribute__

Re: [PATCH] D16216: Fix infinite loop when ::new or ::delete are found in member initializer list

2016-01-19 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added a subscriber: ABataev. d.zobnin.bugzilla added a comment. I am going to ask @ABataev to commit this. Hope to get commit access soon (this is my 5th patch) :) http://reviews.llvm.org/D16216 ___ cfe-commits mailing list cfe-co

Re: [PATCH] D16216: Fix infinite loop when ::new or ::delete are found in member initializer list

2016-01-19 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla updated this revision to Diff 45295. d.zobnin.bugzilla added a comment. Thank you for the review! Updated the patch: parser now skips the rest of the initializers if the previous one was invalid, added several checks to the test. http://reviews.llvm.org/D16216 Files: lib/Pa

Re: [PATCH] D13285: Fix for bug 24196: clang fails on assertion on complex doubles multiplication when EH is enabled

2016-01-19 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla abandoned this revision. d.zobnin.bugzilla added a comment. This issue is fixed in http://reviews.llvm.org/rL253926. http://reviews.llvm.org/D13285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

[PATCH] D16219: PR8901: attribute "mode" rejected for enums and dependent types

2016-01-15 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla created this revision. d.zobnin.bugzilla added a reviewer: aaron.ballman. d.zobnin.bugzilla added a subscriber: cfe-commits. Allow "mode" attribute for enum types, except for vector modes, for compatibility with GCC. Support "mode" attribute with dependent types. http://reviews

[PATCH] D16216: Fix infinite loop when ::new or ::delete are found in member initializer list

2016-01-15 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla created this revision. d.zobnin.bugzilla added reviewers: kcc, rsmith. d.zobnin.bugzilla added a subscriber: cfe-commits. Fix for a case found by fuzzing PR23057 (comment #33 https://llvm.org/bugs/show_bug.cgi?id=23057#c33). Diagnose and consume unexpected ::new and ::delete to

Re: [PATCH] D16112: PR26111: segmentation fault with __attribute__((mode(QI))) on function declaration

2016-01-14 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla updated this revision to Diff 44859. d.zobnin.bugzilla added a comment. Thanks for the review! Updated the patch: added Subjects line for the attribute and removed the "err_attr_wrong_decl" diagnostics. http://reviews.llvm.org/D16112 Files: include/clang/AST/Decl.h includ

[PATCH] D16112: PR26111: segmentation fault with __attribute__((mode(QI))) on function declaration

2016-01-12 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla created this revision. d.zobnin.bugzilla added a reviewer: aaron.ballman. d.zobnin.bugzilla added a subscriber: cfe-commits. Allow "mode" attribute to be applied to VarDecl, not ValueDecl (which includes FunctionDecl and EnumConstantDecl), emit an error if this attribute is used

Re: [PATCH] D14467: [MS] Fix for bug 25013 - #pragma vtordisp is unknown inside functions.

2015-11-17 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added inline comments. Comment at: test/SemaCXX/pragma-vtordisp.cpp:34-35 @@ -33,6 +33,4 @@ struct C { -// FIXME: Our implementation based on token insertion makes it impossible for -// the pragma to appear everywhere we should support it. -//#pragma vtordisp(

Re: [PATCH] D14467: [MS] Fix for bug 25013 - #pragma vtordisp is unknown inside functions.

2015-11-17 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla updated this revision to Diff 40380. d.zobnin.bugzilla added a comment. Only tests have been updated: enabled a test case for Sema, which pass with these changes, added corresponding test case for CodeGen. http://reviews.llvm.org/D14467 Files: include/clang/Sema/Sema.h li

[PATCH] D14467: [MS] Fix for bug 25013 - #pragma vtordisp is unknown inside functions.

2015-11-06 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla created this revision. d.zobnin.bugzilla added a reviewer: rnk. d.zobnin.bugzilla added a subscriber: cfe-commits. This patch adds support of #pragma vtordisp inside functions in attempt to improve compatibility. Microsoft compiler appears to save the stack of vtordisp modes on

[PATCH] D13285: Fix for bug 24196: clang fails on assertion on complex doubles multiplication when EH is enabled

2015-09-30 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla created this revision. d.zobnin.bugzilla added reviewers: rsmith, rjmccall. d.zobnin.bugzilla added a subscriber: cfe-commits. This patch fixes an assertion failure, caused by EmitCall function producing llvm::InvokeInst* when llvm::CallInst* is needed (when multiplication of c