diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-04-08 13:08:11 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-04-08 13:08:11 +0000 |
commit | e964af6ff8068cacd880a93d579adb4b714d37c4 (patch) | |
tree | 7822e84e200d2dc9ef5820a372c51449fad089d6 /lib/Target/CBackend/CBackend.cpp | |
parent | 2fa16e70832bb9f3b3fae1ddd6e4e9e659cd8cf2 (diff) |
fix compile
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100760 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 0d0af46dfd..c87fadb8a6 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -274,8 +274,8 @@ namespace { // 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; } |