aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ConstantFolding.cpp
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2020-07-30 21:07:10 -0700
committerVitaly Buka <vitalybuka@google.com>2020-07-30 21:08:24 -0700
commit89051ebacea72733ff7088cf09a760b1be707acf (patch)
treed6c3c02920f3314f5686c3f715c37dec1fe16fe1 /llvm/lib/Analysis/ConstantFolding.cpp
parent9f0225894254c4706519c85d6fc06c5382903fef (diff)
downloadllvm-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.cpp2
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);