summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-06-25 07:57:14 +0000
committerGabor Greif <ggreif@gmail.com>2010-06-25 07:57:14 +0000
commit5f3e656a1b2182026aed6a2f93d55bf221f047f4 (patch)
tree6e1b8bfdd1ca9a914432eeafed44b2e9881c30a2 /llvm/lib/Transforms/Utils/AddrModeMatcher.cpp
parent07e9284c7505fd819478e559d993cf99e2567a3b (diff)
downloadbcm5719-llvm-5f3e656a1b2182026aed6a2f93d55bf221f047f4.tar.gz
bcm5719-llvm-5f3e656a1b2182026aed6a2f93d55bf221f047f4.zip
use ArgOperand API (some hunks I could split)
llvm-svn: 106824
Diffstat (limited to 'llvm/lib/Transforms/Utils/AddrModeMatcher.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/AddrModeMatcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp b/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp
index ea9d1c1b146..f0cc6f7c5db 100644
--- a/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp
+++ b/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp
@@ -450,7 +450,7 @@ static bool FindAllMemoryUses(Instruction *I,
if (CallInst *CI = dyn_cast<CallInst>(U)) {
InlineAsm *IA = dyn_cast<InlineAsm>(CI->getCalledValue());
- if (IA == 0) return true;
+ if (!IA) return true;
// If this is a memory operand, we're cool, otherwise bail out.
if (!IsOperandAMemoryOperand(CI, IA, I, TLI))
OpenPOWER on IntegriCloud