cling/patches/clang_multi_parsers.diff
Axel Naumann 14c6595959 Update cling's patches to be relative to its LastKnownGood.
Simplify some of the patches by reverting some of the changed llvm / clang files to the original ones.


git-svn-id: http://root.cern.ch/svn/root/trunk@49363 27541ba8-7e3a-0410-8455-c3a389f83636
2013-04-26 11:45:17 +00:00

18 lines
728 B
Diff

--- /home/axel/build/llvm-orig/src/./tools/clang/lib/Lex/Pragma.cpp 2013-04-11 09:34:54.365160820 +0200
+++ ./tools/clang/lib/Lex/Pragma.cpp 2013-04-24 19:40:14.677495262 +0200
@@ -858,9 +858,11 @@
}
// Check to make sure we don't already have a pragma for this identifier.
- assert(!InsertNS->FindHandler(Handler->getName()) &&
- "Pragma handler already exists for this identifier!");
- InsertNS->AddPragma(Handler);
+ // assert(!InsertNS->FindHandler(Handler->getName()) &&
+ // "Pragma handler already exists for this identifier!");
+
+ if (!InsertNS->FindHandler(Handler->getName()))
+ InsertNS->AddPragma(Handler);
}
/// RemovePragmaHandler - Remove the specific pragma handler from the