Fix a bug in our autoupgrade support: in an argument list to a function
commitf9922e6ed7c716a69a84735bace3b2e330319263
authorChris Lattner <sabre@nondot.org>
Wed, 25 Mar 2009 06:36:36 +0000 (25 06:36 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 25 Mar 2009 06:36:36 +0000 (25 06:36 +0000)
tree7f0dc1b1b1007c1e30b9634f8a90a4e9feb9e767
parent7c6a15e818af81a6ffc6f134ea430a2c8beb6541
Fix a bug in our autoupgrade support: in an argument list to a function
call, we should treat "i64 zext" as the start of a constant expr, but
"i64 0 zext" as an argument with an obsolete attribute on it (this form
is already tested by test/Assembler/2007-07-30-AutoUpgradeZextSext.ll).

Make the autoupgrade logic more discerning to avoid treating "i64 zext"
as an old-style attribute, causing us to reject a valid constant expr.
This fixes PR3876.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67682 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLParser.cpp
test/Assembler/2009-03-24-ZextConstantExpr.ll [new file with mode: 0644]