OSDN Git Service
(root)
/
android-x86
/
external-llvm-project.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
024af42
)
[TableGen] Fix use of *CurRec when CurRec is null.
author
Paul C. Anagnostopoulos
<paul@windfall.com>
Fri, 8 Jan 2021 18:20:27 +0000
(13:20 -0500)
committer
Paul C. Anagnostopoulos
<paul@windfall.com>
Fri, 8 Jan 2021 18:21:57 +0000
(13:21 -0500)
I cannot build with the undefined sanitizer on Visual Studio.
llvm/lib/TableGen/TGParser.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/TableGen/TGParser.cpp
b/llvm/lib/TableGen/TGParser.cpp
index
b0eecd5
..
7918e2a
100644
(file)
--- a/
llvm/lib/TableGen/TGParser.cpp
+++ b/
llvm/lib/TableGen/TGParser.cpp
@@
-3209,10
+3209,7
@@
bool TGParser::ParseAssert(MultiClass *CurMultiClass, Record *CurRec) {
} else if (CurRec) {
CurRec->addAssertion(ConditionLoc, Condition, Message);
} else { // at top level
- RecordResolver R(*CurRec);
- Init *Value = Condition->resolveReferences(R);
- Init *Text = Message->resolveReferences(R);
- CheckAssert(ConditionLoc, Value, Text);
+ CheckAssert(ConditionLoc, Condition, Message);
}
return false;