summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-04-05 16:16:23 +0000
committerFangrui Song <maskray@google.com>2019-04-05 16:16:23 +0000
commit2c5c12c0417bd9405732bc58f6c2a6f18522d933 (patch)
treed70de2c9ffeb31b3ebfb54deb9d36f25cb924b7e /llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
parent681b0798dbbc6b3500c9930977ec8a274b142acb (diff)
downloadbcm5719-llvm-2c5c12c0417bd9405732bc58f6c2a6f18522d933.tar.gz
bcm5719-llvm-2c5c12c0417bd9405732bc58f6c2a6f18522d933.zip
Change some dyn_cast to more apropriate isa. NFC
llvm-svn: 357773
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
index ac97f7fb9b2..99377b8a6cd 100644
--- a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
+++ b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
@@ -1369,7 +1369,7 @@ void MemIntrinsicVisitor::instrumentOneMemIntrinsic(MemIntrinsic &MI) {
Type *Int64Ty = Builder.getInt64Ty();
Type *I8PtrTy = Builder.getInt8PtrTy();
Value *Length = MI.getLength();
- assert(!dyn_cast<ConstantInt>(Length));
+ assert(!isa<ConstantInt>(Length));
Builder.CreateCall(
Intrinsic::getDeclaration(M, Intrinsic::instrprof_value_profile),
{ConstantExpr::getBitCast(FuncNameVar, I8PtrTy),
OpenPOWER on IntegriCloud