diff options
-rw-r--r-- | llvm/include/llvm/InlineAsm.h | 6 | ||||
-rw-r--r-- | llvm/lib/VMCore/InlineAsm.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/InlineAsm.h b/llvm/include/llvm/InlineAsm.h index ed5bf8b38af..a98aff178cc 100644 --- a/llvm/include/llvm/InlineAsm.h +++ b/llvm/include/llvm/InlineAsm.h @@ -64,13 +64,13 @@ public: /// getType - InlineAsm's are always pointers. /// - const PointerType *getType() const { - return reinterpret_cast<const PointerType*>(Value::getType()); + PointerType *getType() const { + return reinterpret_cast<PointerType*>(Value::getType()); } /// getFunctionType - InlineAsm's are always pointers to functions. /// - const FunctionType *getFunctionType() const; + FunctionType *getFunctionType() const; const std::string &getAsmString() const { return AsmString; } const std::string &getConstraintString() const { return Constraints; } diff --git a/llvm/lib/VMCore/InlineAsm.cpp b/llvm/lib/VMCore/InlineAsm.cpp index 5ae4a1bb94f..4a03b395e98 100644 --- a/llvm/lib/VMCore/InlineAsm.cpp +++ b/llvm/lib/VMCore/InlineAsm.cpp @@ -51,7 +51,7 @@ void InlineAsm::destroyConstant() { delete this; } -const FunctionType *InlineAsm::getFunctionType() const { +FunctionType *InlineAsm::getFunctionType() const { return cast<FunctionType>(getType()->getElementType()); } |