]> granicus.if.org Git - clang/commit
PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() and
authorJay Foad <jay.foad@gmail.com>
Tue, 7 Dec 2010 08:25:34 +0000 (08:25 +0000)
committerJay Foad <jay.foad@gmail.com>
Tue, 7 Dec 2010 08:25:34 +0000 (08:25 +0000)
commit9f71a8f4c7a182a5236da9e747d57cc1d1bd24c2
treede2e74ed442ebccd54b82089e7953960c93a27ec
parentdd182ff10b9145e432dea1fd2fb67100ccca3b10
PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() and
zextOrTrunc(), and APSInt methods extend(), extOrTrunc() and new method
trunc(), to be const and to return a new value instead of modifying the
object in place.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121121 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
lib/AST/ASTContext.cpp
lib/AST/ASTImporter.cpp
lib/AST/ExprConstant.cpp
lib/AST/Type.cpp
lib/Checker/SimpleConstraintManager.cpp
lib/Checker/SimpleSValBuilder.cpp
lib/CodeGen/CGExprCXX.cpp
lib/CodeGen/CGExprConstant.cpp
lib/Sema/SemaChecking.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaInit.cpp
lib/Sema/SemaStmt.cpp
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateDeduction.cpp