[cfe-commits] r163178 - /cfe/trunk/lib/CodeGen/CGStmt.cpp
Chad Rosier
mcrosier at apple.com
Tue Sep 4 16:08:24 PDT 2012
Author: mcrosier
Date: Tue Sep 4 18:08:24 2012
New Revision: 163178
URL: http://llvm.org/viewvc/llvm-project?rev=163178&view=rev
Log:
[ms-inline asm] Set the inline assembly dialect in CodeGen.
Modified:
cfe/trunk/lib/CodeGen/CGStmt.cpp
Modified: cfe/trunk/lib/CodeGen/CGStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGStmt.cpp?rev=163178&r1=163177&r2=163178&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGStmt.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGStmt.cpp Tue Sep 4 18:08:24 2012
@@ -1615,7 +1615,9 @@
bool HasSideEffect = S.isVolatile() || S.getNumOutputs() == 0;
llvm::InlineAsm *IA =
- llvm::InlineAsm::get(FTy, AsmString, Constraints, HasSideEffect);
+ llvm::InlineAsm::get(FTy, AsmString, Constraints, HasSideEffect,
+ /* IsAlignStack */ false,
+ /* AsmDialect */ isa<MSAsmStmt>(&S));
llvm::CallInst *Result = Builder.CreateCall(IA, Args);
Result->addAttribute(~0, llvm::Attribute::NoUnwind);
More information about the cfe-commits
mailing list