aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-08-25 10:38:11 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-08-25 10:38:11 +0000
commitd1d66bcd6914ff82abdfa88dd25bb0b74cde3b99 (patch)
tree92300e8ff4f1b1f40ff7c9c1e495a9677150ebe9 /lib/CodeGen
parent270cc66683b22d6bb0b4644f5a40f84d45edf119 (diff)
Change another is-a-pointer check to check in terms of LLVM type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CGExprScalar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp
index 963aeaf59c..11d1e8dfdb 100644
--- a/lib/CodeGen/CGExprScalar.cpp
+++ b/lib/CodeGen/CGExprScalar.cpp
@@ -336,7 +336,7 @@ Value *ScalarExprEmitter::EmitConversionToBool(Value *Src, QualType SrcType) {
return Builder.CreateFCmpUNE(Src, Zero, "tobool");
}
- assert((SrcType->isIntegerType() || SrcType->isPointerType()) &&
+ assert((SrcType->isIntegerType() || isa<llvm::PointerType>(Src->getType())) &&
"Unknown scalar type to convert");
// Because of the type rules of C, we often end up computing a logical value,