diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index cd43532fb65..1ffaeb0c143 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -124,8 +124,8 @@ public: template const STC &getSubtarget() const { return *static_cast(getSubtargetImpl()); } - template const STC &getSubtarget(const Function &) const { - return *static_cast(getSubtargetImpl()); + template const STC &getSubtarget(const Function &F) const { + return *static_cast(getSubtargetImpl(F)); } /// getDataLayout - This method returns a pointer to the DataLayout for