diff options
author | Vitaly Buka <vitalybuka@google.com> | 2020-07-30 21:07:10 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2020-07-30 21:08:24 -0700 |
commit | 89051ebacea72733ff7088cf09a760b1be707acf (patch) | |
tree | d6c3c02920f3314f5686c3f715c37dec1fe16fe1 /llvm/lib/Analysis/ConstantFolding.cpp | |
parent | 9f0225894254c4706519c85d6fc06c5382903fef (diff) | |
download | llvm-89051ebacea72733ff7088cf09a760b1be707acf.zip llvm-89051ebacea72733ff7088cf09a760b1be707acf.tar.gz llvm-89051ebacea72733ff7088cf09a760b1be707acf.tar.bz2 |
[NFC] GetUnderlyingObject -> getUnderlyingObject
I am going to touch them in the next patch anyway
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | llvm/lib/Analysis/ConstantFolding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp index a7458ff..1b3fa19 100644 --- a/llvm/lib/Analysis/ConstantFolding.cpp +++ b/llvm/lib/Analysis/ConstantFolding.cpp @@ -718,7 +718,7 @@ Constant *llvm::ConstantFoldLoadFromConstPtr(Constant *C, Type *Ty, // If this load comes from anywhere in a constant global, and if the global // is all undef or zero, we know what it loads. - if (auto *GV = dyn_cast<GlobalVariable>(GetUnderlyingObject(CE, DL))) { + if (auto *GV = dyn_cast<GlobalVariable>(getUnderlyingObject(CE, DL))) { if (GV->isConstant() && GV->hasDefinitiveInitializer()) { if (GV->getInitializer()->isNullValue()) return Constant::getNullValue(Ty); |