aboutsummaryrefslogtreecommitdiff
path: root/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
commit9c68a7bb45ebf71cec5ab4eab7c73aacdfce16df (patch)
tree9a6c2b9f70d437a8c484286c1e17170f46f89fc2 /lib/Transforms/Utils/AddrModeMatcher.cpp
parent7f1d7f5779e266cf1de8f3b4d7025f7f7f8eba85 (diff)
use ArgOperand API (some hunks I could split)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/AddrModeMatcher.cpp')
-rw-r--r--lib/Transforms/Utils/AddrModeMatcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/AddrModeMatcher.cpp b/lib/Transforms/Utils/AddrModeMatcher.cpp
index ea9d1c1b14..f0cc6f7c5d 100644
--- a/lib/Transforms/Utils/AddrModeMatcher.cpp
+++ b/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))