diff options
author | Arthur Eubanks <aeubanks@google.com> | 2021-07-09 09:55:07 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2021-07-09 09:55:41 -0700 |
commit | 4e6013250d319a7ca4fc7fb5ba9ac7b1b28d2b4f (patch) | |
tree | c1845b79e32fd4159d5adeaacbd75116a2f5666f /llvm/lib/IR/Module.cpp | |
parent | 486992f958cedc0b0ce4ab29262deb48cc8c8a51 (diff) | |
download | llvm-4e6013250d319a7ca4fc7fb5ba9ac7b1b28d2b4f.zip llvm-4e6013250d319a7ca4fc7fb5ba9ac7b1b28d2b4f.tar.gz llvm-4e6013250d319a7ca4fc7fb5ba9ac7b1b28d2b4f.tar.bz2 |
[NFC][OpaquePtr] Use GlobalValue::getValueType() more
Instead of getType()->getElementType().
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
-rw-r--r-- | llvm/lib/IR/Module.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp index 9b95550..7c18dc0 100644 --- a/llvm/lib/IR/Module.cpp +++ b/llvm/lib/IR/Module.cpp @@ -506,7 +506,7 @@ std::string Module::getUniqueIntrinsicName(StringRef BaseName, Intrinsic::ID Id, } // A declaration with this name already exists. Remember it. - FunctionType *FT = dyn_cast<FunctionType>(F->getType()->getElementType()); + FunctionType *FT = dyn_cast<FunctionType>(F->getValueType()); auto UinItInserted = UniquedIntrinsicNames.insert({{Id, FT}, Count}); if (FT == Proto) { // It was a declaration for our prototype. This entry was allocated in the |