diff options
author | John Criswell <criswell@uiuc.edu> | 2003-09-09 16:36:09 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-09-09 16:36:09 +0000 |
commit | 21ca6ee7cdad69168d0470fcaedc6bb494b36776 (patch) | |
tree | 15d01eb64278ea5d2328e9c3e329cf9bdb51541a /lib | |
parent | ad2007155991e3fdec348a4fdbfc9faab806721d (diff) | |
download | external_llvm-21ca6ee7cdad69168d0470fcaedc6bb494b36776.zip external_llvm-21ca6ee7cdad69168d0470fcaedc6bb494b36776.tar.gz external_llvm-21ca6ee7cdad69168d0470fcaedc6bb494b36776.tar.bz2 |
Modified the check for intrinsic functions. All intrinsic functions have to
be at least 6 characters, since something must follow the "llvm." string in the
function name.
This seems to fix an assertion failure with the SingleSource tests, too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8418 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/Function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 74098ff..5ef4ce4 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -159,7 +159,7 @@ void Function::dropAllReferences() { /// llvm/Intrinsics.h. /// unsigned Function::getIntrinsicID() const { - if (getName().size() <= 5 || getName()[4] != '.' || getName()[0] != 'l' || + if (getName().size() <= 6 || getName()[4] != '.' || getName()[0] != 'l' || getName()[1] != 'l' || getName()[2] != 'v' || getName()[3] != 'm') return 0; // All intrinsics start with 'llvm.' |