Fix a bug in our autoupgrade support: in an argument list to a function
authorChris Lattner <sabre@nondot.org>
Wed, 25 Mar 2009 06:36:36 +0000 (06:36 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 25 Mar 2009 06:36:36 +0000 (06:36 +0000)
commitad9ad7c827b585c018288c89d611d8c97d8d2e7d
tree7f0dc1b1b1007c1e30b9634f8a90a4e9feb9e767
parent0c8f7dc67cebcb1eef5984baaa4802cb46f72797
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]