diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-12 04:14:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-12 04:14:22 +0000 |
commit | a17ce80a1e475ab3526a4787b878d55a42727d19 (patch) | |
tree | 09175d33fe39b90966ae5978d48e547ffc3c3283 /lib/VMCore | |
parent | b9484cafcc5086144f27a084ed539fc33a54760f (diff) | |
download | external_llvm-a17ce80a1e475ab3526a4787b878d55a42727d19.zip external_llvm-a17ce80a1e475ab3526a4787b878d55a42727d19.tar.gz external_llvm-a17ce80a1e475ab3526a4787b878d55a42727d19.tar.bz2 |
make the IRBuilder type methods return non-const types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/IRBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/IRBuilder.cpp b/lib/VMCore/IRBuilder.cpp index f2d469a..5ad88a7 100644 --- a/lib/VMCore/IRBuilder.cpp +++ b/lib/VMCore/IRBuilder.cpp @@ -34,7 +34,7 @@ Value *IRBuilderBase::CreateGlobalString(StringRef Str, const Twine &Name) { return GV; } -const Type *IRBuilderBase::getCurrentFunctionReturnType() const { +Type *IRBuilderBase::getCurrentFunctionReturnType() const { assert(BB && BB->getParent() && "No current function!"); return BB->getParent()->getReturnType(); } |