[PATCH] Fix for bug 22941, [asm inline] integer template parameter ...

David Majnemer david.majnemer at gmail.com
Mon Jun 15 11:48:11 PDT 2015


================
Comment at: lib/Sema/SemaStmtAsm.cpp:257
@@ -256,3 +256,2 @@
     } else if (Info.requiresImmediateConstant() && !Info.allowsRegister()) {
       llvm::APSInt Result;
-      if (!InputExpr->EvaluateAsInt(Result, Context))
----------------
I think we could just fix this by inserting:
  if (InputExpr->isValueDependent())
    continue;

http://reviews.llvm.org/D10452

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list