[llvm-branch-commits] [llvm-branch] r100761 - in /llvm/branches/ggreif/CallInst-operands: ./ lib/Target/CBackend/CBackend.cpp
Gabor Greif
ggreif at gmail.com
Thu Apr 8 06:12:15 PDT 2010
Author: ggreif
Date: Thu Apr 8 08:12:15 2010
New Revision: 100761
URL: http://llvm.org/viewvc/llvm-project?rev=100761&view=rev
Log:
pull from trunk
Modified:
llvm/branches/ggreif/CallInst-operands/ (props changed)
llvm/branches/ggreif/CallInst-operands/lib/Target/CBackend/CBackend.cpp
Propchange: llvm/branches/ggreif/CallInst-operands/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Apr 8 08:12:15 2010
@@ -1,3 +1,3 @@
/llvm/branches/ggreif/InvokeInst-operands:98645-99398
/llvm/branches/ggreif/const-CallSite:99517-100006
-/llvm/trunk:100544,100758
+/llvm/trunk:100544,100758,100760
Modified: llvm/branches/ggreif/CallInst-operands/lib/Target/CBackend/CBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/lib/Target/CBackend/CBackend.cpp?rev=100761&r1=100760&r2=100761&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/lib/Target/CBackend/CBackend.cpp (original)
+++ llvm/branches/ggreif/CallInst-operands/lib/Target/CBackend/CBackend.cpp Thu Apr 8 08:12:15 2010
@@ -274,8 +274,8 @@
// isInlineAsm - Check if the instruction is a call to an inline asm chunk
static bool isInlineAsm(const Instruction& I) {
- if (isa<CallInst>(&I) && isa<InlineAsm>(I.getCalledValue()))
- return true;
+ if (const CallInst *CI = dyn_cast<CallInst>(&I))
+ return isa<InlineAsm>(CI->getCalledValue());
return false;
}
More information about the llvm-branch-commits
mailing list