[cfe-commits] r163161 - /cfe/trunk/lib/CodeGen/CGStmt.cpp
Chad Rosier
mcrosier at apple.com
Tue Sep 4 12:50:17 PDT 2012
Author: mcrosier
Date: Tue Sep 4 14:50:17 2012
New Revision: 163161
URL: http://llvm.org/viewvc/llvm-project?rev=163161&view=rev
Log:
Minor cleanup to improve code readability. No functional change intended.
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=163161&r1=163160&r2=163161&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGStmt.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGStmt.cpp Tue Sep 4 14:50:17 2012
@@ -1613,9 +1613,9 @@
llvm::FunctionType *FTy =
llvm::FunctionType::get(ResultType, ArgTypes, false);
+ bool HasSideEffect = S.isVolatile() || S.getNumOutputs() == 0;
llvm::InlineAsm *IA =
- llvm::InlineAsm::get(FTy, AsmString, Constraints,
- S.isVolatile() || S.getNumOutputs() == 0);
+ llvm::InlineAsm::get(FTy, AsmString, Constraints, HasSideEffect);
llvm::CallInst *Result = Builder.CreateCall(IA, Args);
Result->addAttribute(~0, llvm::Attribute::NoUnwind);
More information about the cfe-commits
mailing list