aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/InlineAsm.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-01-05 13:12:22 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-01-05 13:12:22 +0000
commitf2052d5e0eb5028a06f41d2cebb8e22b6876ebc0 (patch)
treed1bcdd1cfc5ddc28894a9b9d6cbb2875d922e437 /lib/VMCore/InlineAsm.cpp
parent6f722bc2a76cffdda850711eaa84651f9125eef1 (diff)
downloadexternal_llvm-f2052d5e0eb5028a06f41d2cebb8e22b6876ebc0.zip
external_llvm-f2052d5e0eb5028a06f41d2cebb8e22b6876ebc0.tar.gz
external_llvm-f2052d5e0eb5028a06f41d2cebb8e22b6876ebc0.tar.bz2
Avoid going through the LLVMContext for type equality where it's safe to dereference the type pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92726 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/InlineAsm.cpp')
-rw-r--r--lib/VMCore/InlineAsm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/InlineAsm.cpp b/lib/VMCore/InlineAsm.cpp
index 16de1af..ec21773 100644
--- a/lib/VMCore/InlineAsm.cpp
+++ b/lib/VMCore/InlineAsm.cpp
@@ -217,7 +217,7 @@ bool InlineAsm::Verify(const FunctionType *Ty, StringRef ConstStr) {
switch (NumOutputs) {
case 0:
- if (Ty->getReturnType() != Type::getVoidTy(Ty->getContext())) return false;
+ if (!Ty->getReturnType()->isVoidTy()) return false;
break;
case 1:
if (isa<StructType>(Ty->getReturnType())) return false;