summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmt.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-02-07 00:39:47 +0000
committerChris Lattner <sabre@nondot.org>2012-02-07 00:39:47 +0000
commitece0409a1a45895985a18dfc6c77c497e7ea4de7 (patch)
tree29c4f735c9aff70edb239dee3050335ddd79c042 /clang/lib/CodeGen/CGStmt.cpp
parent8573dc7e1fbc5d7c8687ede1b34078b09ad1e07f (diff)
downloadbcm5719-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.cpp2
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
OpenPOWER on IntegriCloud