From 924476a79da9ce04d3aa48e94c941146f327ed13 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Thu, 4 Dec 2014 21:39:24 +0000 Subject: [PATCH] Add a FIXME as requested by Renato Golin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223390 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index f291fe4a4dd..b080c92820f 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -9111,6 +9111,9 @@ bool ARMAsmParser::parseDirectiveCPU(SMLoc L) { return false; } + // FIXME: This switches the CPU features globally, therefore it might + // happen that code you would not expect to assemble will. For details + // see: http://llvm.org/bugs/show_bug.cgi?id=20757 STI.InitMCProcessorInfo(CPU, ""); STI.InitCPUSchedModel(CPU); unsigned FB = ComputeAvailableFeatures(STI.getFeatureBits());