aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/IRBuilder.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-11 17:20:16 +0000
committerDan Gohman <gohman@apple.com>2009-08-11 17:20:16 +0000
commit826edc531d4afce987381962c4f9c093ac73765a (patch)
treed98e8ef9ddb92538147c82417858dbdaa98bb977 /include/llvm/Support/IRBuilder.h
parent225c8dde22492a1790e574c8dbf3a91d8f92c0c8 (diff)
downloadexternal_llvm-826edc531d4afce987381962c4f9c093ac73765a.zip
external_llvm-826edc531d4afce987381962c4f9c093ac73765a.tar.gz
external_llvm-826edc531d4afce987381962c4f9c093ac73765a.tar.bz2
Use isa instead of dyn_cast when the result is only converted to bool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/IRBuilder.h')
-rw-r--r--include/llvm/Support/IRBuilder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h
index a8663d2..33ceb69 100644
--- a/include/llvm/Support/IRBuilder.h
+++ b/include/llvm/Support/IRBuilder.h
@@ -363,7 +363,7 @@ public:
// Every index must be constant.
InputIterator i;
for (i = IdxBegin; i < IdxEnd; ++i) {
- if (!dyn_cast<Constant>(*i))
+ if (!isa<Constant>(*i))
break;
}
if (i == IdxEnd)