aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2010-03-07 07:18:58 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2010-03-07 07:18:58 +0000
commit92e4443fcc4a349f061b651a1aa7a5862268cbf9 (patch)
treeab80cf0e7efe4bbfed3b1bcba217482b41e78ce5 /lib/Frontend
parent3afda6037d0c96a1868fe9a5ab51b6cfe7fade1c (diff)
Don't assert if PP already contains a valid PP callback. The PP can handle multiple callbacks (using PPChainedCallbacks)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend')
-rw-r--r--lib/Frontend/DependencyFile.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Frontend/DependencyFile.cpp b/lib/Frontend/DependencyFile.cpp
index 478c33939c..9487b1a06d 100644
--- a/lib/Frontend/DependencyFile.cpp
+++ b/lib/Frontend/DependencyFile.cpp
@@ -74,7 +74,6 @@ void clang::AttachDependencyFileGen(Preprocessor &PP,
return;
}
- assert(!PP.getPPCallbacks() && "Preprocessor callbacks already registered!");
PP.setPPCallbacks(new DependencyFileCallback(&PP, OS, Opts));
}