[PATCH] Fix for bug 22941, [asm inline] integer template parameter ...
David Majnemer
david.majnemer at gmail.com
Wed Jun 24 16:40:18 PDT 2015
This differential revision doesn't include a testcase.
================
Comment at: lib/Sema/SemaStmtAsm.cpp:257
@@ -256,2 +256,3 @@
} else if (Info.requiresImmediateConstant() && !Info.allowsRegister()) {
llvm::APSInt Result;
+ if (!InputExpr->isValueDependent()) {
----------------
Please move this variable declaration to the point at which `EvaluateAsInt` is called.
http://reviews.llvm.org/D10452
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the cfe-commits
mailing list