summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.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/CodeGen/AsmPrinter/AsmPrinter.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/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 7887ce17550..fe22e946c16 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1231,7 +1231,7 @@ static bool isGOTEquivalentCandidate(const GlobalVariable *GV,
// GlobalVariable or Function, i.e., as GlobalValue.
if (!GV->hasGlobalUnnamedAddr() || !GV->hasInitializer() ||
!GV->isConstant() || !GV->isDiscardableIfUnused() ||
- !dyn_cast<GlobalValue>(GV->getOperand(0)))
+ !isa<GlobalValue>(GV->getOperand(0)))
return false;
// To be a got equivalent, at least one of its users need to be a constant
OpenPOWER on IntegriCloud