From 7c57be3e2b6f3001cdb1e78b921f9e7ccc84f32c Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Mon, 11 Jul 2011 09:56:20 +0000 Subject: De-constify Types in StructType::get() and TargetData::getIntPtrType(). llvm-svn: 134893 --- clang/lib/CodeGen/CGStmt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/CodeGen/CGStmt.cpp') diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index 20979475373..443d8776bfd 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -1408,8 +1408,8 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { std::vector ResultRegDests; std::vector ResultRegQualTys; - std::vector ResultRegTypes; - std::vector ResultTruncRegTypes; + std::vector ResultRegTypes; + std::vector ResultTruncRegTypes; std::vector ArgTypes; std::vector Args; @@ -1465,7 +1465,7 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { ResultRegTypes.back() = ConvertType(InputTy); } } - if (const llvm::Type* AdjTy = + if (llvm::Type* AdjTy = getTargetHooks().adjustInlineAsmType(*this, OutputConstraint, ResultRegTypes.back())) ResultRegTypes.back() = AdjTy; -- cgit v1.2.3