diff options
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 |