diff options
author | Fangrui Song <maskray@google.com> | 2019-04-05 16:16:23 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-04-05 16:16:23 +0000 |
commit | 2c5c12c0417bd9405732bc58f6c2a6f18522d933 (patch) | |
tree | d70de2c9ffeb31b3ebfb54deb9d36f25cb924b7e /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 681b0798dbbc6b3500c9930977ec8a274b142acb (diff) | |
download | bcm5719-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.cpp | 2 |
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 |