diff options
author | Chris Lattner <sabre@nondot.org> | 2012-02-07 00:39:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-02-07 00:39:47 +0000 |
commit | ece0409a1a45895985a18dfc6c77c497e7ea4de7 (patch) | |
tree | 29c4f735c9aff70edb239dee3050335ddd79c042 /clang/lib/CodeGen/CGStmt.cpp | |
parent | 8573dc7e1fbc5d7c8687ede1b34078b09ad1e07f (diff) | |
download | bcm5719-llvm-ece0409a1a45895985a18dfc6c77c497e7ea4de7.tar.gz bcm5719-llvm-ece0409a1a45895985a18dfc6c77c497e7ea4de7.zip |
simplify a bunch of code to use the well-known LLVM IR types computed by CodeGenModule.
llvm-svn: 149943
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index c9311893aef..47807c407b3 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -1612,7 +1612,7 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { llvm::Type *ResultType; if (ResultRegTypes.empty()) - ResultType = llvm::Type::getVoidTy(getLLVMContext()); + ResultType = VoidTy; else if (ResultRegTypes.size() == 1) ResultType = ResultRegTypes[0]; else |