From d1d66bcd6914ff82abdfa88dd25bb0b74cde3b99 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 25 Aug 2008 10:38:11 +0000 Subject: [PATCH] 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 --- lib/CodeGen/CGExprScalar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(Src->getType())) && "Unknown scalar type to convert"); // Because of the type rules of C, we often end up computing a logical value, -- 2.50.1