From: Chris Lattner Date: Tue, 14 Jul 2009 00:15:14 +0000 (+0000) Subject: the mangler can never mangle intrinsics, don't allow this. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=58e3e24f85149258e6199734ca46514c2452c9f2;p=oota-llvm.git the mangler can never mangle intrinsics, don't allow this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75564 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Mangler.cpp b/lib/VMCore/Mangler.cpp index 6e838e395cb..a01f0f1540e 100644 --- a/lib/VMCore/Mangler.cpp +++ b/lib/VMCore/Mangler.cpp @@ -129,10 +129,8 @@ std::string Mangler::makeNameProper(const std::string &X, const char *Prefix, } std::string Mangler::getValueName(const GlobalValue *GV, const char *Suffix) { - // Never mangle intrinsic functions. - // FIXME: These should never come into the mangler. - if (isa(GV) && cast(GV)->isIntrinsic()) - return GV->getNameStart(); + assert((!isa(GV) || !cast(GV)->isIntrinsic()) && + "Intrinsic functions cannot be mangled by Mangler"); if (GV->hasName()) { if (GV->hasPrivateLinkage())